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

--grep support #37

Open
emaxsaun opened this issue Apr 19, 2018 · 2 comments
Open

--grep support #37

emaxsaun opened this issue Apr 19, 2018 · 2 comments

Comments

@emaxsaun
Copy link

One thing that I do in my project is I tag different describe blocks with tags like @stage, for example

So when I call protractor I pass in this argument --grep='@stage'

Whenever I have shardTestFiles: true, in my config and I use the grep option, it will run a blank browser for every single spec that doesn't match the grep. If I don't have it set, it only will run the tagged specs, which is what I want, but then I loose rerun functionality. Please advise :)

@amrot17
Copy link
Contributor

amrot17 commented Oct 19, 2018

@emaxsaun i use the mocha.opts grep , with the retry package, and its working without any issues

if you can provide the running command with the config in use so i can debug this for you

@emaxsaun
Copy link
Author

@amrot17 I was using it with protractor with Jasmine, not mocha, but that was for a project at my previous employer, at my new job we use WDIO now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants