| MultiReporter | R Documentation |
Fans out every reporter event to a list of child reporters, so a single
muttest() run can drive more than one reporter at once – for example a
live ProgressMutationReporter alongside a JSONMutationReporter that
writes a machine-readable artifact.
muttest::MutationReporter -> MultiReporter
reportersList of child reporters.
new()Initialize a combined reporter
MultiReporter$new(...)
...One or more MutationReporter objects.
start_reporter()Start reporter
MultiReporter$start_reporter(plan = NULL)
planThe complete mutation plan
start_file()Start testing a file
MultiReporter$start_file(filename)
filenamePath to the file being mutated
start_mutator()Start testing with a specific mutator
MultiReporter$start_mutator(mutator)
mutatorThe mutator being applied
add_result()Add a mutation test result
MultiReporter$add_result(...)
...Arguments forwarded to each child's add_result().
update()Update status
MultiReporter$update(force = FALSE)
forcePassed to each child
end_mutator()End testing with current mutator
MultiReporter$end_mutator()
end_file()End testing current file
MultiReporter$end_file()
end_reporter()End reporter
MultiReporter$end_reporter()
get_score()Get the score (from the first child)
MultiReporter$get_score()
print()Print each child that supports printing
MultiReporter$print()
clone()The objects of this class are cloneable with this method.
MultiReporter$clone(deep = FALSE)
deepWhether to make a deep clone.
Other MutationReporter:
JSONMutationReporter,
MutationReporter,
ProgressMutationReporter,
default_reporter()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.