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.

E2E tests can't be ran in parallel

See original GitHub issue

Expected Behavior

E2E tests can be ran in parallel.

Current Behavior

E2E tests can’t be ran in parallel. Different errors are thrown based on the test runner.

Cypress:

Screen Shot 2019-07-20 at 4 23 32 PM

Protractor:

Screen Shot 2019-07-20 at 4 28 24 PM

Steps to Reproduce

  1. Generate a Nx workspace
  2. Generate either two Cypress or two Protractor projects
  3. npm run affected:e2e -- --all --parallel

Context

  • version of Nx used 8.2.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
kpl1commented, Apr 1, 2021

Any news about this ?
I have the issue.

4reactions
mike-parkcommented, Jul 5, 2020

Without having looked at it, this may work though as it is right now. nx affected:e2e --parallel --maxParallel=2 -- --parallel where the second --parallel gets passed along to the individual cypress run for the affected application.

I can verify that this approach (adding -- --parallel) fixes our problems with the --parallel flag being eaten by nx, and not passed to cypress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running e2e Tests in Parallel - Quality Thoughts
Without adequately designed e2e tests – which have been designed to be run in parallel – parallelism can introduce non-deterministic and ...
Read more >
Running E2E-Tests in parallel - selenium - Stack Overflow
It sounds like a problem with the server, not the tests. Is your server running out of memory by doing too much in...
Read more >
What is Parallel Testing and How Does it Work? - Semaphore CI
Our starting definition may look deceptively simple: we say we're performing parallel testing when two or more tests are run simultaneously.
Read more >
What is Parallel Testing? Definition, Approach, Example
In Software Engineering, Parallel testing is testing multiple applications or subcomponents of one application concurrently to reduce the test ...
Read more >
Parallelization | Cypress Documentation
Cypress can run recorded tests in parallel across multiple machines since version 3.1.0. While parallel tests can also technically run on a single...
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