test_trace_mapping | R Documentation |
Extract a matrix used to relate test code to the traces that each test evaluates.
test_trace_mapping(x)
x |
A |
A data.frame
with one record for each line of code executed, with
variables:
The index of the test that was executed, reflecting the order in which tests are executed
The call stack depth when the coverage trace was evaluated
The index of the expression evaluated by each test. This can be used to recover an order of trace execution for a given test index
The index of the coverage trace that was evaluated
srcrefs_df srcrefs
options(covr.record_tests = TRUE)
pkg_path <- system.file("examplepkg", package = "covtracer")
cov <- covr::package_coverage(pkg_path)
test_trace_mapping(cov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.