View source: R/test_trace_df.R
test_trace_df | R Documentation |
Intercept unit test coverage reports and process results to link evaluated functions to the unit tests which trigger their evaluation. In doing so, we can then link the associated function documentation of each object to the tests that triggered their evaluation as a way of reusing existing documentation to generate specifications.
test_trace_df(x, ...)
## S3 method for class 'coverage'
test_trace_df(
x,
...,
pkg = as.package(attr(x, "package")$path),
aggregate_by = sum
)
x |
A package object, name, source code path or coverage result to use
as the bases of tracing tests. Coverage results must have been produced
using |
... |
Additional arguments unused |
pkg |
A |
aggregate_by |
|
A data.frame
of tests and corresponding traces
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.