File: covr-package.Rd

package info (click to toggle)
r-cran-covr 3.6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,132 kB
  • sloc: javascript: 238; cpp: 74; ansic: 48; xml: 41; sh: 18; makefile: 11
file content (128 lines) | stat: -rw-r--r-- 4,512 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covr.R
\docType{package}
\name{covr-package}
\alias{covr}
\alias{covr-package}
\title{covr: Test coverage for packages}
\description{
covr tracks and reports code coverage for your package and (optionally)
upload the results to a coverage service like 'Codecov' \url{https://about.codecov.io} or
'Coveralls' \url{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.
}
\details{
A coverage report can be used to inspect coverage for each line in your
package. Using \code{report()} requires the additional dependencies \code{DT} and \code{htmltools}.

\if{html}{\out{<div class="sourceCode r">}}\preformatted{# If run with no arguments `report()` implicitly calls `package_coverage()`
report()
}\if{html}{\out{</div>}}
}
\section{Package options}{


\code{covr} uses the following \code{\link[=options]{options()}} to configure behaviour:

\itemize{
\item \code{covr.covrignore}: A filename to use as an ignore file,
listing glob-style wildcarded paths of files to ignore for coverage
calculations. Defaults to the value of environment variable
\code{COVR_COVRIGNORE}, or \code{".covrignore"}  if the neither the option nor the
environment variable are set.

\item \code{covr.exclude_end}: Used along with \code{covr.exclude_start}, an optional
regular expression which ends a line-exclusion region. For more
details, see \code{?exclusions}.

\item \code{covr.exclude_pattern}: An optional line-exclusion pattern. Lines
which match the pattern will be excluded from coverage. For more details,
see \code{?exclusions}.

\item \code{covr.exclude_start}: Used along with \code{covr.exclude_end}, an optional
regular expression which starts a line-exclusion region. For more
details, see \code{?exclusions}.

\item \code{covr.filter_non_package}: If \code{TRUE} (the default behavior), coverage
of files outside the target package are filtered from coverage output.

\item \code{covr.fix_parallel_mcexit}:

\item \code{covr.flags}:

\item \code{covr.gcov}: If the appropriate gcov version is not on your path you
can use this option to set the appropriate location. If set to "" it will
turn off coverage of compiled code.

\item \code{covr.gcov_additional_paths}:

\item \code{covr.gcov_args}:

\item \code{covr.icov}:

\item \code{covr.icov_args}:

\item \code{covr.icov_flags}:

\item \code{covr.icov_prof}:

\item \code{covr.rstudio_source_markers}: A logical value. If \code{TRUE} (the
default behavior), source markers are displayed within the RStudio IDE
when using \code{zero_coverage}.

\item \code{covr.record_tests}: If \code{TRUE} (default \code{NULL}), record a listing of
top level test expressions and associate tests with \code{covr} traces
evaluated during the test's execution. For more details, see
\code{?covr.record_tests}.

\item \code{covr.showCfunctions}:
}
}

\seealso{
Useful links:
\itemize{
  \item \url{https://covr.r-lib.org}
  \item \url{https://github.com/r-lib/covr}
  \item Report bugs at \url{https://github.com/r-lib/covr/issues}
}

}
\author{
\strong{Maintainer}: Jim Hester \email{james.f.hester@gmail.com}

Other contributors:
\itemize{
  \item Willem Ligtenberg [contributor]
  \item Kirill Müller [contributor]
  \item Henrik Bengtsson [contributor]
  \item Steve Peak [contributor]
  \item Kirill Sevastyanenko [contributor]
  \item Jon Clayden [contributor]
  \item Robert Flight [contributor]
  \item Eric Brown [contributor]
  \item Brodie Gaslam [contributor]
  \item Will Beasley [contributor]
  \item Robert Krzyzanowski [contributor]
  \item Markus Wamser [contributor]
  \item Karl Forner [contributor]
  \item Gergely Daróczi [contributor]
  \item Jouni Helske [contributor]
  \item Kun Ren [contributor]
  \item Jeroen Ooms [contributor]
  \item Ken Williams [contributor]
  \item Chris Campbell [contributor]
  \item David Hugh-Jones [contributor]
  \item Qin Wang [contributor]
  \item Doug Kelkhoff [contributor]
  \item Ivan Sagalaev (highlight.js library) [contributor, copyright holder]
  \item Mark Otto (Bootstrap library) [contributor]
  \item Jacob Thornton (Bootstrap library) [contributor]
  \item  Bootstrap contributors (Bootstrap library) [contributor]
  \item  Twitter, Inc (Bootstrap library) [copyright holder]
}

}