badeball / cypress-parallel

Cypress parallelization in any CI environment, without depending on external services
MIT License
17 stars 6 forks source link

Where we need to add? #5

Closed DeChrish closed 2 years ago

DeChrish commented 2 years ago

Lmao... Have you by any chance added an custom, but empty strategy, as shown below?

module.export = { /* @type {import("@badeball/cypress-parallel").UnweighedStrategy} / unweighedStrategy(weighedFiles, unweighedFiles, nodeCount) { // Implement me. }, };

Q: Where we need to add?

My Plugin File>

module.exports = (on, config) => { // on is used to hook into various events Cypress emits // config is the resolved Cypress config

allureWriter(on, config) on('file:preprocessor', cucumber()); on('before:browser:launch', (browser, args) => { if(browser.name =='chrome' && browser.isHeadless) { // headless no gpu args.push('--disable-gpu') // in vm container, shm size can be limited args.push('--disable-dev-shm-usage') args.push('--disable-infobars') } }); on('task', { log (message) { console.log(message);
return null; } }); return config }

badeball commented 2 years ago

You have to provide me with a minimal example that illustrates the error.