Run covr on a package and upload the result to codecov.io
codecov(
...,
coverage = NULL,
base_url = "https://codecov.io",
token = NULL,
commit = NULL,
branch = NULL,
pr = NULL,
flags = NULL,
quiet = TRUE
)
arguments passed to package_coverage()
an existing coverage object to submit, if NULL
,
package_coverage()
will be called with the arguments from
...
Codecov url (change for Enterprise)
a codecov upload token, if NULL
then following external
sources will be checked in this order:
the environment variable ‘CODECOV_TOKEN’. If it is empty, then
package will look at directory of the package for a file codecov.yml
.
File must have codecov
section where field token
is set to a token that
will be used.
explicitly set the commit this coverage result object
corresponds to. Is looked up from the service or locally if it is
NULL
.
explicitly set the branch this coverage result object
corresponds to, this is looked up from the service or locally if it is
NULL
.
explicitly set the pr this coverage result object corresponds to,
this is looked up from the service if it is NULL
.
A flag to use for this coverage upload see https://docs.codecov.com/docs/flags for details.
if FALSE
, print the coverage before submission.
if (FALSE) {
codecov(path = "test")
}