Does anyone know a working solution for Cypress + Cucumber tags + Spec tags? #1145
Unanswered
morganizeit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have my Cypress project setup so that I can write and run both Spec and Cucumber tests in one go.
cypress run --spec "cypress/tests/gsac/specs/*.cy.js,cypress/tests/gsac/*.feature"Works great! All test results in one report.
But now I need to filter what I run. Filtering by test name is not flexible enough. Cucumber has excellent tagging features using AND/OR expressions to filter by tags.
I can use the
filterSpecsMixedModeoption to either include or exclude all Spec tests, but I can't filter them with Cucumber tags.I've researched various libraries for filtering Specs but I haven't found one that is fully compatible with cypress-cucumber-preprocessor.
The lack of a solution forces me separate builds/reports for Spec vs Cuke which I really don't want to do.
Beta Was this translation helpful? Give feedback.
All reactions