Issue running tagged tests with cypress-tags
See original GitHub issueDescription
I am testing the cypress-tags run -e TAGS='not @foo and (@bar or @zap)'
feature in my project but I’ve found a problem when trying it out.
When I run cypress-tags run -e TAGS='@login'
it works as expected, running only the scenarios tagged as login
but when trying the opposite cypress-tags run -e TAGS='not @login'
I get this errors:
$ cypress-tags run -e TAGS='not @login'
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
Error parsing tags: 'not'. Message: empty stack
So what it does is it tries to run all the scenarios but since not one matches the criteria all of them are set to passed without running them.
My versions are:
"cypress-cucumber-preprocessor": "^1.16.2"
"cypress": "3.6.1"
Ubuntu 18.04.3 LTS
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to apply Tags to your Cypress Tests like Smoke, E2E
Method 1: Using cypress-select-tests (This is DEPRECATED) · Method 2: Using a Custom Function · Method 3: Using cypress-grep · About The Author ......
Read more >How To Tag And Run End-to-End Tests - Gleb Bahmutov
How to tag your Cypress tests to make sure anyone can quickly test the changes. · Organize the tests by feature # ·...
Read more >cypress-tags - npm
Use custom tags to slice up Cypress test runs. See cypress-tags-example for a working example. This plugin uses TypeScript to parse the tests, ......
Read more >Issue running tagged tests with cypress-tags #274 - GitHub
I am testing the cypress-tags run -e TAGS='not @foo and (@bar or @zap)' feature in my project but I've found a problem when...
Read more >Cucumber tags are not working after Cypress ... - Stack Overflow
Just remove cypress-tags altogether, but a good enhancement is to add filterSpecs and ... One of it's features is the run tests by...
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 FreeTop 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
Top GitHub Comments
@davidzambrana, your script
yarn test:error
would work if you quoted correctly, a… alternatively, you can replace
eval
withexec
and leave the quoting as is. You probably don’t want a subshell to begin with anyway.would you be able to create a simple demonstration/reproduction? Maybe based on a fork of one of our example repos? That will increase the chance that one of us will find the time to investigate and fix 😃
Thanks!