Running Smaller Groups of Tests Using Cucumber
Learn how to run smaller groups of tests using Cucumber.
We'll cover the following
Cucumber running smaller groups of tests
Cucumber’s set of options is almost identical to RSpecs. Again, we recommend using the cucumber
command line directly rather than going through rake. We can specify one or more files, append line numbers with a colon, and allow or deny tags with the -t
or --tag
option. (The main difference is that Cucumber tags start with an @
, which we must include in the command line).
Cucumber running tests in reverse
Cucumber privileges one special tag, @wip
, which is short for “work in progress.” Cucumber scenarios tagged with @wip
won’t count as failures in a test run (much like RSpec’s pending
). Cucumber also has the separate -w
or --wip
, which runs Cucumber in reverse and fails if there are any passing scenarios.
Get hands-on with 1400+ tech skills courses.