Learn R Programming

covr (version 4.0.0)

gitlab: Run covr on package and create report for GitLab

Description

Utilize internal GitLab static pages to publish package coverage. Creates local covr report in a package subdirectory. Uses the pages GitLab job to publish the report.

Usage

gitlab(..., coverage = NULL, file = "public/coverage.html", quiet = TRUE)

Value

The path of the report, invisibly.

Arguments

...

arguments passed to package_coverage()

coverage

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

file

The path of the HTML report, relative to the root directory of the package (not the working directory). Directories that don't exist are created.

quiet

if FALSE, print the output of running the tests (see package_coverage(), which is called when coverage is NULL) and the coverage before submission.