Skip to contents

Check an execution report in CI. Every required ID must be present and have status completed. By default, each required case must also have recorded zero warnings. Warnings handled by the test, such as those checked with testthat::expect_warning(), do not count.

Usage

check_test_plan(evidence, required, allow_warnings = FALSE)

Arguments

evidence

A result from run_test_plan().

required

A nonempty character vector of unique case IDs.

allow_warnings

Allow required cases to complete with warnings. The default, FALSE, requires warning counts for completed cases. For reports saved before warning counts were recorded, rerun the plan or explicitly set allow_warnings = TRUE.

Value

Invisibly returns TRUE on success. Otherwise signals a biocroxytest_incomplete_test_plan error listing the required cases that did not meet the policy.