Test Coverage for Packages
Clean and restructure counter tests for a coverage object
Convert a counters object to a coverage object
Run covr on a package and output the result so it is available on Azur...
clear all previous counters
Calculate coverage of code directly
Run covr on a package and upload the result to codecov.io
Append a test trace to a counter, updating global current test
increment a given counter
Convert a coverage dataset to a list
Run covr on a package and upload the result to coveralls
covr: Test coverage for packages
Record Test Traces During Coverage Execution
Retrieve the number of times the test call was called
Retrieve the index for the test in .counters$tests
Build key for the current test
Retrieve the path name (filename) for each coverage object
Calculate coverage of an environment
Exclusions
Calculate test coverage for sets of files
A coverage report for a specific file
Calculate test coverage for a specific function.
Run covr on package and create report for GitLab
Is the source bound to the expression
Determine if code is being run in covr
Is the expression a call to covr:::count
Returns TRUE if we've moved on from test reflected in .current_test
Generate a key for a call
initialize a new counter
Initialize a new test counter for a coverage trace
Calculate test coverage for a package
Provide percent coverage of package
Print a coverage object
Display covr results using a standalone report
Run a system command and check if it succeeds.
Run a system command and capture the output.
Tally coverage by line or expression
Create a Cobertura XML file
Create a SonarQube Generic XML file for test coverage according to htt...
trace each call with a srcref attribute
Truncate call objects to limit the number of arguments
Update current test if unit test expression has progressed
Retrieve the value from an object
Provide locations of zero coverage
Track and report code coverage for your package and (optionally) upload the results to a coverage service like 'Codecov' <https://about.codecov.io> or 'Coveralls' <https://coveralls.io>. Code coverage is a measure of the amount of code being exercised by a set of tests. It is an indirect measure of test quality and completeness. This package is compatible with any testing methodology or framework and tracks coverage of both R code and compiled C/C++/FORTRAN code.
Useful links