bahmutov / cypress-select-tests

User space solution for picking Cypress tests to run
96 stars 14 forks source link

Feature: Running tests with multiple tags on grep #6

Open dialex opened 5 years ago

dialex commented 5 years ago

To run tests tagged with "ABC" I do: --env grep=ABC

To run tests tagged with "ABC" or "XYZ" I do: ?

MaxNamazov commented 4 years ago

You can implement this with custom select logic. Docs

samlucax commented 3 years ago

@MaxNamazov could you share an example using two or more tags? Thanks

r0nunes commented 3 years ago

@dialex @samlucax

An example of a logic to run two tags at the same time: https://gist.github.com/r0nunes/240e0b3a9484051d3781e8f62fbfc82c

To execute: npm cypress run --env grep=[@Tag1, @Tag2]