Matches APIs to tests

call_that_available_tests(
  test_directory = "tests/testthat",
  plumber_directory = "inst/plumber"
)

Arguments

test_directory

Location of the test scripts. Defaults to 'test/testthat'.

plumber_directory

Location of the plumber APIs. Defaults to 'inst/plumber'.

Details

It looks for test scripts with the prefix 'test-plumber-...'. It matches the last part of the script's name and matches it to plumber API inside the 'inst/plumber' folder.