"--spec" option does not run a single spec but runs all specs in ./integrations directory
See original GitHub issueCurrent 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)

- Operating System: Mac OS X
- Cypress Version: 1.4.1
- Browser Version: Chrome 63, Electron 53
Issue Analytics
- State:
- Created 6 years ago
- Comments:26 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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