yahoo / protractor-retry

Use protractor features to automatically re-run failed tests with a specific configurable number of attempts.
MIT License
28 stars 32 forks source link

--grep support #37

Open emaxsaun opened 6 years ago

emaxsaun commented 6 years ago

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 commented 5 years ago

@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 commented 5 years ago

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