
Run tests matching the mutated source file name
FileTestStrategy.RdThis strategy tells if a mutant is caught by a test matching the source file name.
For example, if the source file name is foo.R, and there are test files named test-foo.R or test-bar.R,
only test-foo.R will be run.
This strategy should give faster results than ?FullTestStrategy, especially for big codebases,
but the score might be less accurate.
See also
Other TestStrategy:
FullTestStrategy,
TestStrategy,
default_test_strategy()
Super class
muttest::TestStrategy -> FileTestStrategy
Methods
Method new()
Initialize the FileTestStrategy
Usage
FileTestStrategy$new(
load_helpers = TRUE,
load_package = c("source", "none", "installed")
)Method execute()
Execute the test strategy
Arguments
pathThe path to the test directory
planThe current mutation plan. See
plan().reporterThe reporter to use for test results