Cypress encountered an error while parsing the argument: --spec #22732
Labels
E2E
Issue related to end-to-end testing
good first issue
Good for newcomers
Triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
type: bug
Current behavior
I made a mistake to pass an empty string to the
--browser
option ofcypress run
, but the error message says that I pass a wrong--spec
option, this is very confusing.Desired behavior
In this situation, cypress should say that the value of
--browser
options is not valid.sayTest code to reproduce
$ npx cypress run --browser --spec "cypress/integration/1-getting-started/todo.spec.js"
Cypress Version
10.3.0
Other
The text was updated successfully, but these errors were encountered: