Package: covr 3.6.4.9003

Jim Hester

covr: Test Coverage for Packages

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.

Authors:Jim Hester [aut, cre], Willem Ligtenberg [ctb], Kirill Müller [ctb], Henrik Bengtsson [ctb], Steve Peak [ctb], Kirill Sevastyanenko [ctb], Jon Clayden [ctb], Robert Flight [ctb], Eric Brown [ctb], Brodie Gaslam [ctb], Will Beasley [ctb], Robert Krzyzanowski [ctb], Markus Wamser [ctb], Karl Forner [ctb], Gergely Daróczi [ctb], Jouni Helske [ctb], Kun Ren [ctb], Jeroen Ooms [ctb], Ken Williams [ctb], Chris Campbell [ctb], David Hugh-Jones [ctb], Qin Wang [ctb], Doug Kelkhoff [ctb], Ivan Sagalaev [ctb, cph], Mark Otto [ctb], Jacob Thornton [ctb], Bootstrap contributors [ctb], Twitter, Inc [cph]

covr_3.6.4.9003.tar.gz
covr_3.6.4.9003.zip(r-4.5)covr_3.6.4.9003.zip(r-4.4)covr_3.6.4.9003.zip(r-4.3)
covr_3.6.4.9003.tgz(r-4.4-arm64)covr_3.6.4.9003.tgz(r-4.4-x86_64)covr_3.6.4.9003.tgz(r-4.3-arm64)covr_3.6.4.9003.tgz(r-4.3-x86_64)
covr_3.6.4.9003.tar.gz(r-4.5-noble)covr_3.6.4.9003.tar.gz(r-4.4-noble)
covr_3.6.4.9003.tgz(r-4.4-emscripten)covr_3.6.4.9003.tgz(r-4.3-emscripten)
covr.pdf |covr.html
covr/json (API)
NEWS

# Install covr in R:
install.packages('covr', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-lib/covr/issues

On CRAN:

codecovcoveragecoverage-reporttravis-ci

20 exports 330 stars 7.71 score 13 dependencies 20 dependents 2 mentions 138.8k downloads

Last updated 3 months agofrom:dd5286dd7cb3909456637a52d942f2428fa0a926

Exports:azurecode_coveragecodecovcoverage_to_listcoverallsdisplay_nameenvironment_coveragefile_coveragefile_reportfunction_coveragegitlabin_covrpackage_coveragepercent_coveragereporttally_coverageto_coberturato_sonarqubevaluezero_coverage

Dependencies:askpasscrayoncurldigesthttrjsonlitemimeopensslR6rexsyswithryaml

How does covr work anyway

Rendered fromhow_it_works.Rmdusingknitr::rmarkdownon Jun 06 2024.

Last update: 2022-08-24
Started: 2015-01-21

Readme and manuals

Help Manual

Help pageTopics
covr: Test coverage for packagescovr-package covr
Convert a counters object to a coverage objectas_coverage
Clean and restructure counter tests for a coverage objectas_coverage_with_tests
Run covr on a package and output the result so it is available on Azure Pipelinesazure
Calculate coverage of code directlycode_coverage
Run covr on a package and upload the result to codecov.iocodecov
Convert a coverage dataset to a listcoverage_to_list
Run covr on a package and upload the result to coverallscoveralls
Record Test Traces During Coverage Executioncovr.record_tests
Retrieve the number of times the test call was calledcurrent_test_call_count
Calculate coverage of an environmentenvironment_coverage
Exclusionsexclusions
Calculate test coverage for sets of filesfile_coverage
A coverage report for a specific filefile_report
Calculate test coverage for a specific function.function_coverage
Run covr on package and create report for GitLabgitlab
Is the source bound to the expressionhas_srcref
Determine if code is being run in covrin_covr
Is the expression a call to covr:::countis_covr_count_call
Returns TRUE if we've moved on from test reflected in .current_testis_current_test_finished
Initialize a new test counter for a coverage tracenew_test_counter
Calculate test coverage for a packagepackage_coverage
Provide percent coverage of packagepercent_coverage
Print a coverage objectprint.coverage
Display covr results using a standalone reportreport
Tally coverage by line or expressiontally_coverage
Create a Cobertura XML fileto_cobertura
Create a SonarQube Generic XML file for test coverage according to https://docs.sonarqube.org/latest/analysis/generic-test/ Based on cobertura.Rto_sonarqube
Truncate call objects to limit the number of argumentstruncate_call
Retrieve the value from an objectvalue
Provide locations of zero coveragezero_coverage