question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Process doesnt end when running in parallel

See original GitHub issue

What are you trying to achieve?

Running multiple browsers with testcafe using codeceptjs run-multiple --all

What do you get instead?

The process seems to hang and teardownAll never fires

Screen Shot 2019-10-31 at 13 37 06

Details

  • CodeceptJS version: 2.3.5
  • NodeJS Version: 10.13.0
  • Operating System: Macos Sierra
  • Protractor || WebDriverIO || Nightmare version (if related): - testcafe 1.6.0
  • Configuration file:
exports.config = {
  output: './e2e_tests/output',
  helpers: {
    TestCafe: {
      url: 'https://dev-server.com',
      browser: 'browserstack:chrome@78.0:OS X Mojave',
      show: true,
    },
    ResembleHelper: {
      require: 'codeceptjs-resemblehelper',
      screenshotFolder: './e2e_tests/tests/output/',
      baseFolder: './e2e_tests/tests/screenshots/base/',
      diffFolder: './e2e_tests/tests/screenshots/diff/',
    },
  },
  include: {
    I: './e2e_tests/steps_file.js',
  },
  mocha: { bail: true },
  bootstrap: null,
  teardown: null,
  hooks: [
    // './e2e_tests/hooks/event.all.after.js',
  ],
  gherkin: {
    features: './e2e_tests/features/*.feature',
    steps: ['./e2e_tests/step_definitions/steps.js'],
  },
  plugins: {
    screenshotOnFail: {
      enabled: true,
    },
  },
  tests: './e2e_tests/tests/**/*.test.js',
  name: 'polaris-siteapp',
  multiple: {
    basic: {
      grep: '(?=.*)^(?!.*@visual-test)',
      // List available browserstack browsers
      // node ./node_modules/testcafe/bin/testcafe.js -b browserstack
      browsers: [
        'chrome',
        'safari',
        // 'browserstack:chrome@78.0:OS X Mojave',
        // 'browserstack:edge@18.0:Windows 10',
        // 'browserstack:ie@11.0:Windows 10',
      ],
    },
  },
  teardownAll: (done) => { console.log('DUN'); done(); },
};

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
armands226commented, Apr 6, 2020

Hi, updated to 2.6.0. Still the same process doesn’t end.

0reactions
DavertMikcommented, Sep 5, 2021

please switch to workers

Read more comments on GitHub >

github_iconTop Results From Across the Web

bash wait for all processes to finish (doesn't work)
(2) The solution is flawed, because it waits for all 8 processes to finish before starting new ones. If one process takes 10-times...
Read more >
Process doesnt end when running in parallel #1997 - GitHub
I have visual tests. I am using Resemble. Command to execute: npx codeceptjs run-multiple parallel --reporter mocha-multi.
Read more >
Parallel (GNU make)
If make terminates for any reason (including a signal) with child processes running, it waits for them to finish before actually exiting. When...
Read more >
Ubuntu Manpage: parallel - build and execute shell command ...
If the number is lower than before, running jobs will be allowed to finish but new jobs will not be started until the...
Read more >
Parallel Processing in R
Parallel processing (in the extreme) means that all the f# processes start simultaneously and run to completion on their own. If we have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found