
Progress Reporter for Mutation Testing
ProgressMutationReporter.RdA reporter that displays a progress indicator for mutation tests. It provides real-time feedback on which mutants are being tested and whether they were killed by tests.
See also
Other MutationReporter:
MutationReporter,
default_reporter()
Super class
muttest::MutationReporter -> ProgressMutationReporter
Public fields
start_timeTime when testing started (for duration calculation)
min_timeMinimum test duration to display timing information
col_configList of column configuration for report formatting
survived_detailControls how survived mutants are reported (summary, none)
survived_mutantsList to store details of survived mutants for summary reporting
Methods
Method fmt_r()
Format a row of the report
Method new()
Initialize a new progress reporter
Usage
ProgressMutationReporter$new(
test_reporter = "silent",
min_time = 1,
file = stdout(),
survived_detail = c("summary", "none")
)Method add_result()
Add a mutation test result
Usage
ProgressMutationReporter$add_result(
plan,
killed,
survived,
errors,
error = NULL,
original_code = NULL,
mutated_code = NULL
)Arguments
planCurrent testing plan. See
muttest_plan().killedWhether the mutation was killed by tests
survivedNumber of survived mutations
errorsNumber of errors encountered
errorOptional error condition from a failed run
original_codeOriginal source lines before mutation
mutated_codeMutated source lines
Method update()
Update status spinner (for long-running operations)
Method print()
Print the mutation test result with survived diffs