plan | R Documentation |
Each mutant requires rerunning the tests. For large project it might be not feasible to test all mutants in one go. This function allows you to create a plan for selected source files and mutators.
plan(mutators, source_files = fs::dir_ls("R", regexp = ".[rR]$"))
mutators |
A list of mutators to use. See |
source_files |
A vector of file paths to the source files. |
The plan is in a data frame format, where each row represents a mutant.
You can subset the plan before passing it to the muttest()
function.
A data frame with the test plan. The data frame has the following columns:
filename
: The name of the source file.
original_code
: The original code of the source file.
mutated_code
: The mutated code of the source file.
mutator
: The mutator that was applied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.