ct: Change the current working test

Description Usage Arguments Details See Also Examples

Description

The current working test can be:

Usage

1
2
3
ct(x = "")

setwt(x = "")

Arguments

x

Sub-test to step into. It might be

  • "/", to select the test directory including all tests.

  • the absolute "path" to a test file or test block.

  • the (unique) beginning of the name of a test file, or, if the current test is a test file, the (unique) beginning of a test block name.

  • "..", in which case we step out, i.e. from a test block to the test file, from a test file to the test directory including all tests.

Details

If x does not uniquely specify the test file or test block, and the R session is interactive, then the user needs to select between them manually. For non-interactive R sessions and error is thrown in this case.

setwt (set working test) is a synomym of ct (change test).

See Also

Other test selection functions: pwt

Examples

1
TODO

r-lib/httrmock documentation built on May 14, 2019, 2:33 p.m.