This command runs all Cucumber tests. It takes all .feature files
from the features_dir
and runs them using the steps from the steps_dir
.
Usage
test(
features_dir,
steps_dir,
steps_loader = .default_steps_loader,
test_interactive = getOption("cucumber.interactive", default = FALSE)
)
Arguments
- features_dir
A character string of the directory containing the feature files.
- steps_dir
A character string of the directory containing the step files.
- steps_loader
A function that loads the steps implementations. By default it sources all files from the
steps_dir
using the built-in mechanism. You can provide your own function to load the steps. The function should take one argument, which will be thesteps_dir
and return a list of steps.- test_interactive
A logical value indicating whether to ask which feature files to run.