1.1.3 • Published 2 years ago
cy-gitlab-parallel-runner v1.1.3
#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
1) 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;
};
2) Inside getfiles() function you have to specify the path of the folder where your test files are present
getfiles("../cypress/e2e")
3) 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.