cy-gitlab-parallel-runner
v1.1.3
Published
"Module to run cypress test in parallel"
Downloads
8
Readme
#Introduction
The package allows you to run the cypress tests in parallel inside gitlab without using cypress dashboard feature
#To Install package and save it as dev dependency
npm i -d cy-gitlab-parallel-runner
#Steps to Use the package
- Import the package inside plugin or folder if you are using older version or inside cypress.config.js file as given below.
const getfiles = require("cy-gitlab-parallel-runner")
module.exports = (on, config) => {
getfiles("PATH TO TEST FOLDER")
return config;
};
- Inside getfiles() function you have to specify the path of the folder where your test files are present
getfiles("../cypress/e2e")
- This will create one temp spec file which you can execute using the npx command. For example:
npx cypress run --browser chrome --headed --spec "cypress/e2e/tempo/spec.cy.js"
Note: The parallel execution works only on Gitlab CI Instance.