I'm trying to figure out a way to use in the same way, or better said, similar way, the tagging options that cucumberJS
has with protractor
, but with Jasmin
e, is there a way to tag the different scenarios, like: @smoke
, @regression
, etc.. and then tell on console to run with those?
I'm declining to use Cucumber
, since it's support it's seems to be getting flaky!
Any help will be much appreciated!
Alternative to
grep
would to be to usesuites
:Then, run protractor specifying the
suite
argument:With jasmine2 you can filter tests using a regular expression. Maybe you can add something like @smoke, @regressions to your tests and then only run those ones by passing the grep flag:
Then run protractor passing the grep flag:
protractor conf.js --grep='@smoke'