Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Run subset of single spec file from CLI #7220

Closed
gone opened this issue May 4, 2020 · 1 comment
Closed

Feature request: Run subset of single spec file from CLI #7220

gone opened this issue May 4, 2020 · 1 comment
Labels
type: duplicate This issue or pull request already exists

Comments

@gone
Copy link

gone commented May 4, 2020

Current behavior:

Currently when running a single spec file all tests within the spec file are run. I'm scripting the test run within a larger app and I'm trying to do a flow of set up -> run cypress -> check data -> tear down around the test and currently I can't isolate each test to check the results.

Desired behavior:

I'd like to be able to run a subset (one) similar to how mocha's -g flag works https://mochajs.org/#-grep-regexp-g-regexp

something like
yarn run cypress run --spec "src/__tests__/cypress/integration/signup.js" -g "it works"
yarn run cypress run --spec "src/__tests__/cypress/integration/signup.js" -g "this one fails"

@jennifer-shehane
Copy link
Member

Duplicate of #1865

@jennifer-shehane jennifer-shehane marked this as a duplicate of #1865 May 5, 2020
@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants