🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

cypress-gitlab-parallel-runner

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-gitlab-parallel-runner

"Module to run cypress test in parallel"

1.1.3
latest
npm
Version published
Weekly downloads
1.8K
81.28%
Maintainers
1
Weekly downloads
 
Created
Source

#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 cypress-gitlab-parallel-runner

#Steps to Use the package

  • Import the package inside plugin cdfolder if you are using older version or inside cypress.config.js file as given below. The second parameter tells that you wanted to run the specs in parallel. If false it will not run create any parallel spec file and execution will fail.
const getspecFiles = require("cypress-gitlab-parallel-runner")
module.exports = (on, config) => {
      getspecFiles("PATH TO TEST FOLDER",true)
  return config;
};

  • Inside getfiles() function you have to specify the path of the folder where your test files are present
getspecFiles("../cypress/e2e",true)
  • 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/tmp/parallel.cy.js"

Note: The parallel execution works only on Gitlab CI Instance.

FAQs

Package last updated on 17 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts