Cypress · Senior · Question 11 of 76
How can you run only tests tagged @smoke in Cypress?
- 1Tags aren't possible; split specs into folders
- 2Use
cypress run --smoke, a built-in flag - 3Use the
@cypress/grepplugin and filter by tag
Show the answer
Correct answer: Use the @cypress/grep plugin and filter by tag
Explanation
The grep plugin filters by title or tags and can skip specs with no matches, so smoke runs finish quickly.