cypress-select-tests icon indicating copy to clipboard operation
cypress-select-tests copied to clipboard

Feature: Running tests with multiple tags on grep

Open dialex opened this issue 5 years ago • 3 comments

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

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

dialex avatar Jun 25 '19 08:06 dialex

You can implement this with custom select logic. Docs

MaxNamazov avatar Dec 05 '19 10:12 MaxNamazov

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

samlucax avatar Nov 18 '20 01:11 samlucax

@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]

r0nunes avatar Nov 18 '20 13:11 r0nunes