
Reporter for Mutation Testing
MutationReporter.Rd
The job of a mutation reporter is to aggregate and display the results of mutation tests. It tracks each mutation attempt, reporting on whether the tests killed the mutation or the mutation survived.
See also
Other MutationReporter:
ProgressMutationReporter
,
default_reporter()
Public fields
test_reporter
Reporter to use for the testthat::test_dir function
out
Output destination for reporter messages
width
Width of the console in characters
unicode
Whether Unicode output is supported
crayon
Whether colored output is supported
rstudio
Whether running in RStudio
hyperlinks
Whether terminal hyperlinks are supported
current_file
Path of the file currently being mutated
current_mutator
Mutator currently being applied
plan
Complete mutation plan for the test run
results
List of mutation test results, indexed by file path
current_score
Current score of the mutation tests
Methods
Method new()
Initialize a new reporter
Usage
MutationReporter$new(test_reporter = "silent", file = stdout())
Method add_result()
Add a mutation test result
Arguments
plan
Current testing plan. See
plan()
.killed
Whether the mutation was killed by tests
survived
Number of survived mutations
errors
Number of errors encountered