Skip to contents

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)

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 the steps_dir and return a list of steps.

Value

None, function called for side effects.