Open ranska opened 3 years ago
Same as with plain rspec
, you can append a line number to the filename to only run the scenario found at this line (must not start there, can also be in the middle).
example:
bundle exec rspec spec/features/some.feature:42
Hi I found that it work like cucumber too.
you can run this
bundle exec rspec --tags @current spec/features/some.feature
and tag the scenario you want with @current
Hello,
First thanks a lot for this wonderfull gem that simplify a lot my testing journey (I love it more than cucumber for say)
I would like to know. Is there a way tu run only one scenario from a feature file ?
In cucumber I was use to add a tag
@current
and run cucumber with--tag @current
Can we do such a thing here ?
It is very handy during development of one new feature to run only one test to dev it fast and then fix the whole feature.