inst/examples/custom_steps_loader/tests/testthat/test-cucumber.R

options(box.path = system.file("examples/custom_steps_loader", package = "cucumber"))
box::purge_cache()

box::use(
  cucumber[test],
)

test(
  ".",
  "./cucumber",
  steps_loader = function(steps_dir) {
    box::use(tests/testthat/cucumber[steps])
    steps
  }
)

Try the cucumber package in your browser

Any scripts or data that you put into this service are public.

cucumber documentation built on June 30, 2024, 1:07 a.m.