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.

"--spec" option does not run a single spec but runs all specs in ./integrations directory

See original GitHub issue

Current behavior:

Runs all tests in ./integration/ directory

Desired behavior:

Run single test when using --spec for cypress run command

How to reproduce:

run cypress run --spec cypress/integration/**/*_spec.js

Additional Info (images, stack traces, etc)

screen shot 2018-01-24 at 5 41 34 pm
  • Operating System: Mac OS X
  • Cypress Version: 1.4.1
  • Browser Version: Chrome 63, Electron 53

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jennifer-shehanecommented, May 14, 2018

The code for this is done, but this has yet to be released. We’ll update this issue and reference the changelog when it’s released.

1reaction
nadim1975commented, Nov 26, 2018

@willischu Finally it worked …thank you so much for your help. the problem was running the command from Windows powerShell , instead I used Windows CMD and it worked !

One more challenge: when I run --headed I still don’t see any browser launched , I thought with --headed it will run the script on the browser and I can actually see what it does.

after it finish it generates a video recording but the video has nothing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run All Specs in Cypress v10 - Gleb Bahmutov
cy.js spec when using the cypress run command. Hint: we will use the config.isTextTerminal property to determine if Cypress is running ...
Read more >
Cypress 10 - How to run all tests in one go? - Stack Overflow
I added test specs, but I don't see any option to run all tests altogether. It seems I have to run the tests...
Read more >
Command Line - Cypress Documentation
Run tests specifying a single test file to run instead of all tests. The spec path should be an absolute path or can...
Read more >
Organizing Test Suite - WebdriverIO
If the --spec value does not point to a particular spec file, it is instead used to filter the spec filenames defined in...
Read more >
15 Testing 5.2.5 - The Grails Framework
You can force a clean before running tests by passing -clean to the test-app command. Grails writes HTML test reports to the build/reports/tests...
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