1# covr 3.5.1
2
3* Generated files from [cpp11](https://cpp11.r-lib.org/) are now ignored (#437)
4
5* `codecov()` and `coveralls()` now retry failed requests before raising an error (#428, @jameslamb)
6
7# covr 3.5.0
8
9* `codecov()` now supports GitHub Actions for public repositories without having to specify a token.
10
11* New `to_sonarqube()` function added to support SonarQube generic XML format (@nibant, @Delfic, #413).
12
13# covr 3.4.0
14
15* `codecov()` now supports GitHub Actions.
16
17* New `in_covr()` function added to return true if code is being run by covr (#407).
18
19* `file_coverage()`, `environment_coverage()` and `function_coverage()` now set
20  `R_COVR=true`, to be consistent with `package_coverage()` (#407)
21
22# covr 3.3.2
23
24* Fix test failures in the development version of R (4.0.0) (#400)
25
26# covr 3.3.1
27
28* Fix inadvertent regression in return visibility when functions are covered.
29  covr versions prior to 3.3.0 surrounded each statement in `{` blocks. covr
30  3.3.0 switched to using `({`, but this caused an inadvertent regression, as
31  `(` will make the result visible it is the last expression in a function.
32  Using `if (TRUE) {` restores the previous behavior. (#391, #392)
33
34# covr 3.3.0
35
36## New Features
37
38* New `azure()` function added to make it easy to use covr on [Azure
39  Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/)
40  (#370)
41
42* Work around issues related to the new curly curly syntax in rlang (#379, #377, rlang#813)
43
44* Compiled code coverage has been improved, in particular C++ templates now
45  contain the merged coverage of all template instances, even if the instances
46  were defined in separate compilation units. (#390)
47
48## Bugfixes and minor improvements
49
50* `codecov()` now includes support for the flags field (#365)
51* `codecov` now looks `codecov.yml` for token if `CODECOV_TOKEN` envvar is not
52  set (@MishaCivey #349).
53* `per_line()` now does not track lines with only punctuation such as `}` or `{` (#387)
54* `tally_coverage()` now includes compiled code, like it did previously (#384)
55
56* Define the necessary coverage flags for C++14, C++17 and C++20 (#369).
57
58* `to_cobertura()` now works with Cobertura coverage-04.dtd (@samssann, #337).
59
60* [R6](https://github.com/r-lib/R6) class generators prefixed with `.` are now
61  included in coverage results (@jameslamb, #356).
62
63* `package_coverage()` gains option `pre_clean`, set to `FALSE` to disable
64  cleaning of existing objects before running `package_coverage()` (@jpritikin, #375)
65
66# 3.2.1
67
68* Fix for regression when testing coverage of packages using mclapply (#335).
69
70# 3.2.0
71
72## Breaking changes
73
74* Previously deprecated `shine()` has been removed. Instead use `report()`.
75
76## New Features
77
78* `file_report()` added when viewing coverage for a single file (#308).
79
80* `display_name()` is now exported, which can be useful to filter the coverage
81  object by filename.
82
83* `environment_coverage()` added, mainly so it can be used for `devtools::test_coverage_file()`.
84
85* `gitlab()` function added to create a coverage report for GitLab using
86  GitLab's internal pages (@surmann, #327, #331).
87
88* The (optional) dependency on shiny has been removed. `report()` can now be
89  built with only DT and htmltools installed.
90
91## Bugfixes and minor improvements
92
93* Fix for gcc-8 gcov output producing lines with no coverage counts in them (#328)
94
95* `impute_srcref()` now handles `...` and drop through arguments in switch
96  statements (#325).
97
98* `tally_coverage()` now avoids an error when there are NA values in the source
99  references (#322).
100
101* `covr(clean = TRUE)` now cleans the temporary library as well (#144)
102
103* `package_coverage()` now returns the end of the file if there is a test error (#319)
104
105* `report()` now handles reports in relative paths with subdirectories correctly (#329)
106
107* `report()` reworked to look more like codecov.io and to display the overall
108  coverage (#302, #307).
109
110* DT explicitly loaded early in `report()` so that failures will occur fast if
111  it is not installed. (#321, @renkun-ken).
112
113# 3.1.0 #
114
115## Breaking changes
116
117* `shine()` has been deprecated in favor of `report()`.
118
119## New Features
120
121* Add support for `.covrignore` files (#238), to exclude files from the coverage.
122
123* Support future versions of R which do not use parse data by default (#309).
124
125* Allow using `trace_calls()` for manually adding functions to package trace
126  that are not found automatically (#295, @mb706).
127
128## Bugfixes
129
130* Fix errors when R is not in the `PATH` (#291)
131
132* Fix line computations when relative paths are being used (#242).
133
134* Fix for Coveralls `Build processing error.` (#285) on pro accounts from
135  Travis CI (#306, @kiwiroy).
136
137* Keep attributes of function bodies (#311, @gaborcsardi)
138
139# 3.0.1 #
140* Add an RStudio Addin for running a coverage report.
141
142* Never use mcexit fix on windows (#223).
143
144* Fix for a performance regression in parsing and reading parse data (#274).
145
146* Fix `switch` support for packages, which was broken due to a bug in
147  how parse data is stored in packages.
148
149* Improve behavior of `switch` coverage, it now supports default values and
150  fall through properly.
151
152* Add `-p` flag to gcov command to preserve file paths. Fixes a bug where
153  gcov output didn't get reported when multiple compiled source files had
154  the same name (#271, @patperry)
155
156# 3.0.0 #
157* The covr license has been changed to GPL-3.
158* Set environment variable `R_COVR=true` when covr is running (#236, #268).
159* Made the gather-and-merge-results step at the end of package_coverage() more memory efficient (#226, @HenrikBengtsson).
160* Support code coverage with icc (#247, @QinWang).
161
162# 2.2.2 #
163* `filter_not_package_files()` now works if a source reference does not have a filename (#254, @hughjonesd).
164* Fix test broken with xml2 v1.1.0
165* Filter out non-local filenames from results (#237).
166* Vignette rewrite / improvements (#229, @CSJCampbell).
167* Fix code that returns `structure(NULL, *)` which is deprecated in R 3.4.0 (#260, #261, @renkun-ken).
168
169# 2.2.1 #
170* Fix test broken with DT 0.2
171
172# 2.2.0 #
173* Fix tests broken with updated htmlwidgets
174* Change report tab title based on filename (Chen Liang).
175* Add support for cobertura XML output (@wligtenberg).
176* Add mcparallel support by patching `mcparallel:::mcexit()`
177  automatically for packages using parallel (#195, @kforner).
178
179# 2.1.0 #
180* Add support for GitLab CI (#190, @enbrown).
181* Update exclusion documentation to include line_exclusions and function
182  exclusions (#191).
183* Support coverage of R6 methods (#174).
184* Explicitly set default packages (including methods) (#183, #180)
185* Set R_LIBS and R_LIBS_SITE as well as R_LIBS_USER (#188).
186* Automatically exclude RcppExport files (#170).
187* Memoised and Vectorized functions now able to be tracked.
188
189# 2.0.1 #
190* Support for filtering by function as well as line.
191* Now tracks coverage for RC methods
192* Rewrote loading and saving to support parallel code and tests including
193  `quit()` calls.
194* Made passing code to `function_coverage()` and `package_coverage()` _not_ use
195  non-standard evaluation.
196* `NULL` statements are analyzed for coverage (#156, @krlmlr).
197* Finer coverage analysis for brace-less `if`, `while` and `for` statements (#154, @krlmlr).
198* Run any combination of coverage types (#104, #133)
199* Remove inconsistencies in line counts between shiny app and services (#129)
200* Include header files in gcov output (#112)
201* Add support for C++11 (#131)
202* Always clean gcov files even on failure (#108)
203* zero_coverage works with RStudio markers (#119)
204* Remove the devtools dependency
205
206# 1.3.0 #
207* Set `.libPaths()` in subprocess to match those in calling process (#140, #147).
208* Move devtools dependency to suggests, only needed on windows
209* move htmltools to suggests
210
211# Initial Release #
212