Run covr on a package and upload the result to codecov.io

Share:

Description

Run covr on a package and upload the result to codecov.io

Usage

1
2
codecov(..., coverage = NULL, base_url = "https://codecov.io",
  token = NULL, commit = NULL, branch = NULL, quiet = TRUE)

Arguments

...

arguments passed to package_coverage

coverage

an existing coverage object to submit, if NULL, package_coverage will be called with the arguments from ...

base_url

Codecov url (change for Enterprise)

token

a codecov upload token, if NULL the environment variable ‘CODECOV_TOKEN’ is used.

commit

explicitly set the commit this coverage result object corresponds to. Is looked up from the service or locally if it is NULL.

branch

explicitly set the branch this coverage result object corresponds to, this is looked up from the service or locally if it is NULL.

quiet

if FALSE, print the coverage before submission.

Examples

1
2
3
4
## Not run: 
codecov(path = "test")

## End(Not run)