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.

Running cypress-parallel directly from command line (not via scripts)

See original GitHub issue

Is it possible to run cypress-parallel directly from command line i.e npx cypress-parallel cypress run -t 2 -d cypress/integration/*?

Reason I ask is that I’m trying to get this working inside a large mono repo and I cannot use scripts.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tnicolacommented, Jan 20, 2022

Sorry to hear that!There are some good advantages in monorepos too, but yeah I agree that still you have to handle a lot of unexpected issue. BTW, the cypress-multi-reporters not found could be an issue related to cypress-parallel. I’m trying to fix it here: https://github.com/tnicola/cypress-parallel/issues/72 . I’ll keep you up to date just in case you’ll try this again in the future!

0reactions
bennymeadecommented, Jan 20, 2022

That’s a good idea. But then my packages paths are out of sync!

Could not load reporter by name: cypress-multi-reporters

We searched for the reporter in these paths:

- /packages/web/corporate/tests/cypress-multi-reporters
- /packages/web/corporate/tests/node_modules/cypress-multi-reporter

Changing my reporter path in cypress.json doesn’t seem to help: "reporter": "../node_modules/cypress-multi-reporters",

In fairness this is not an issue with your package, I have your package working nicely in a small personal repo. This is mono-repo madness, and I would still need the main Cypress commands to work too. So I’m gonna have to give up. Thanks for your help @tnicola

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line - Cypress Documentation
cypress run --parallel​​ Run recorded specs in parallel across multiple machines. You can additionally pass a --group flag so this shows up as...
Read more >
Is there any way to run parallel cypress tests on local machine ...
Via my terminal I created multiple files splitting the specs into seperate .command-files like this: echo "cd <PROJECT_DIRECTORY> && npx cypress ...
Read more >
Running Cypress tests in parallel in GitHub Actions without ...
It exists because we need to get split * up the tests between multiple runners, but we can't run that script in a...
Read more >
How to Run Cypress Tests in Parallel | BrowserStack
Step by step tutorial on running Cypress tests in parallel. Learn how to run Cypress tests on real browsers on the cloud. Read...
Read more >
Part 21 - Run Cypress Tests from Command Line - YouTube
In this video I've shown: -1. Run Cypress Tests from Command Line2. Pass Environment Variables from Command Line3. How to specify which spec ......
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