covr

Test coverage reports for R

OTHER License

Downloads
129.4K
Stars
335
Committers
61

Bot releases are visible (Hide)

covr - covr 3.6.0 Latest Release

Published by jimhester about 2 years ago

  • Added covr.record_tests option. When TRUE, this enables the recording of the trace of the tests being executed and adds an itemization of which tests result in the execution of each trace.
    For more details see ?covr.record_tests (@dgkf, #463, #485, #503)

  • as.data.frame() now returns an 0 row data frame when there are no functions in a package (#427)

  • codecov() is now more robust when coverage is not the output from package_coverage() and token is not provided (#456)

  • package_coverage(code = ) now accepts character vectors of length greater than 1 (@bastistician, #481)

  • package_coverage() now handles packages with install or render time examples (#488)

  • package_coverage() now sets the environment variable R_TESTS to the tests-startup.R file like R CMD check does (#420)

  • report() now provides a more detailed error message if the DT and htmltools dependencies are not installed (#500).

  • Fix parse_gcov bug when package is stored in directory with regex special characters, see #459

  • Error/warning thrown for, respectively, missing gcov or empty parsed gcov output (@stephematician, #448)

  • Support Google Cloud Build uploading reports to Codecov.io (@MarkEdmondson1234 #469)

  • covr is now licensed as MIT (#454)

covr - covr 3.5.1

Published by jimhester about 4 years ago

  • Generated files from cpp11 are now ignored (#437)

  • codecov() and coveralls() now retry failed requests before raising an error (#428, @jameslamb)

covr - covr v3.5.0

Published by jimhester over 4 years ago

  • codecov() now supports GitHub Actions for public repositories without having to specify a token.

  • New to_sonarqube() function added to support SonarQube generic XML format (@nibant, @Delfic, #413).

covr - covr 3.4.0

Published by jimhester almost 5 years ago

  • codecov() now supports GitHub Actions.

  • New in_covr() function added to return true if code is being run by covr (#407).

  • file_coverage(), environment_coverage() and function_coverage() now set
    R_COVR=true, to be consistent with package_coverage() (#407)

covr - covr 3.3.2

Published by jimhester about 5 years ago

  • Fix test failures in the development version of R (4.0.0) (#400)
covr - covr 3.3.1

Published by jimhester about 5 years ago

  • Fix inadvertent regression in return visibility when functions are covered.
    covr versions prior to 3.3.0 surrounded each statement in { blocks. covr
    3.3.0 switched to using ({, but this caused an inadvertent regression, as
    ( will make the result visible it is the last expression in a function.
    Using if (TRUE) { restores the previous behavior. (#391, #392)
covr - covr 3.3.0

Published by jimhester about 5 years ago

New Features

  • New azure() function added to make it easy to use covr on Azure
    Pipelines

    (#370)

  • Work around issues related to the new curly curly syntax in rlang (#379, #377, rlang#813)

  • Compiled code coverage has been improved, in particular C++ templates now
    contain the merged coverage of all template instances, even if the instances
    were defined in separate compilation units. (#390)

Bugfixes and minor improvements

  • codecov() now includes support for the flags field (#365)

  • codecov now looks codecov.yml for token if CODECOV_TOKEN envvar is not
    set (@MishaCivey #349).

  • per_line() now does not track lines with only punctuation such as } or { (#387)

  • tally_coverage() now includes compiled code, like it did previously (#384)

  • Define the necessary coverage flags for C++14, C++17 and C++20 (#369).

  • to_cobertura() now works with Cobertura coverage-04.dtd (@samssann, #337).

  • R6 class generators prefixed with . are now
    included in coverage results (@jameslamb, #356).

  • package_coverage() gains option pre_clean, set to FALSE to disable
    cleaning of existing objects before running package_coverage() (@jpritikin, #375)

covr - covr v3.2.1

Published by jimhester about 5 years ago

  • Fix for regression when testing coverage of packages using mclapply (#335).
covr - Covr v3.0.0

Published by jimhester about 7 years ago

  • The covr license has been changed to GPL-3.
  • Set environment variable R_COVR=true when covr is running (#236, #268).
  • Made the gather-and-merge-results step at the end of package_coverage() more memory efficient (#226, @HenrikBengtsson).
  • Support code coverage with icc (#247, @QinWang).
covr -

Published by jimhester over 8 years ago

Package Rankings
Top 3.33% on Cran.r-project.org
Top 6.67% on Proxy.golang.org
Top 15.25% on Conda-forge.org
Badges
Extracted from project README
R-CMD-check Codecov test coverage CRAN version