simplecov 0.20.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -506
- data/README.md +28 -7
- data/lib/simplecov.rb +16 -15
- data/lib/simplecov/configuration.rb +40 -16
- data/lib/simplecov/exit_codes/maximum_coverage_drop_check.rb +34 -11
- data/lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb +26 -10
- data/lib/simplecov/file_list.rb +10 -4
- data/lib/simplecov/result.rb +2 -31
- data/lib/simplecov/result_merger.rb +121 -52
- data/lib/simplecov/version.rb +1 -1
- metadata +5 -8
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -51
- data/ISSUE_TEMPLATE.md +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 416266e041802fd34c70615778b2fedd0cafd61827b700039c939d13d89f0835
|
4
|
+
data.tar.gz: 5ed28062acc5b3465fadcdebcdb9ca28d9f17535267a31ce7dfcc312e1527f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21d347fa63288c3870213684b636b344bdab7960ab0888e0c1f4e2a7dfbc1eb62da7fc296dcb7ac11d21e04f52a44429523e9a15141cc9d5fad7319f680cbe22
|
7
|
+
data.tar.gz: 5823f330d811c157acf64387ee9cf34e727307f370946f16e28a7b6495eb6bb864ef0703999462a158d69fc9e8c1b32f71a41340724e5989a0fed62396742316
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
0.21.0 (2021-01-03)
|
2
|
+
==========
|
3
|
+
|
4
|
+
The "Collate++" release making it more viable for big CI setups by limiting memory consumption. Also includes some nice new additions for branch coverage settings.
|
5
|
+
|
6
|
+
## Enhancements
|
7
|
+
* Performance of `SimpleCov.collate` improved - it should both run faster and consume much less memory esp. when run with many files (memory consumption should not increase with number of files any more)
|
8
|
+
* Can now define the minimum_coverage_by_file, maximum_coverage_drop and refuse_coverage_drop by branch as well as line coverage. Thanks to [@jemmaissroff](https://github.com/jemmaissroff)
|
9
|
+
* Can set primary coverage to something other than line by setting `primary_coverage :branch` in SimpleCov Configuration. Thanks to [@jemmaissroff](https://github.com/jemmaissroff)
|
10
|
+
|
11
|
+
## Misc
|
12
|
+
* reduce gem size by splitting Changelog into `Changelog.md` and a pre 0.18 `Changelog.old.md`, the latter of which is not included in the gem
|
13
|
+
* The interface of `ResultMeger.merge_and_store` is changed to support the `collate` performance improvements mentioned above. It's not considered an official API, hence this is not in the breaking section. For people using it to merge results from different machines, it's recommended to migrate to [collate](https://github.com/simplecov-ruby/simplecov#merging-test-runs-under-different-execution-environments).
|
14
|
+
|
1
15
|
0.20.0 (2020-11-29)
|
2
16
|
==========
|
3
17
|
|
@@ -147,510 +161,7 @@ On a personal note from [@PragTob](https://github.com/PragTob/) thanks to [ruby
|
|
147
161
|
|
148
162
|
* Add new instance of `Minitest` constant. The `MiniTest` constant (with the capital T) will be removed in the next major release of Minitest. See [#757](https://github.com/simplecov-ruby/simplecov/pull/757) (thanks [@adam12](https://github.com/adam12))
|
149
163
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
Bugfix release for problems with ParallelTests.
|
154
|
-
|
155
|
-
## Bugfixes
|
156
|
-
|
157
|
-
* Avoid hanging with parallel_tests. See [#746](https://github.com/simplecov-ruby/simplecov/pull/746) (thanks [@annaswims](https://github.com/annaswims))
|
158
|
-
|
159
|
-
0.17.0 (2019-07-02)
|
160
|
-
===================
|
161
|
-
|
162
|
-
Maintenance release with nice convenience features and important bugfixes.
|
163
|
-
Notably this **will be the last release to support ruby versions that have reached their end of life**. Moving forward official CRuby support will be 2.4+ and JRuby support will be 9.2+. Older versions might still work but no guarantees.
|
164
|
-
|
165
|
-
## Enhancements
|
166
|
-
|
167
|
-
* Per default filter hidden files and folders. See [#721](https://github.com/simplecov-ruby/simplecov/pull/721) (thanks [Renuo AG](https://www.renuo.ch))
|
168
|
-
* Print the exit status explicitly when it's not a successful build so it's easier figure out SimpleCov failed the build in the output. See [#688](https://github.com/simplecov-ruby/simplecov/pull/688) (thanks [@daemonsy](https://github.com/daemonsy))
|
169
|
-
|
170
|
-
## Bugfixes
|
171
|
-
|
172
|
-
* Avoid a premature failure exit code when setting `minimum_coverage` in combination with using [parallel_tests](https://github.com/grosser/parallel_tests). See [#706](https://github.com/simplecov-ruby/simplecov/pull/706) (thanks [@f1sherman](https://github.com/f1sherman))
|
173
|
-
* Project roots with special characters no longer cause crashes. See [#717](https://github.com/simplecov-ruby/simplecov/pull/717) (thanks [@deivid-rodriguez](https://github.com/deivid-rodriguez))
|
174
|
-
* Avoid continously overriding test results with manual `ResultMergere.store_results` usage. See [#674](https://github.com/simplecov-ruby/simplecov/pull/674) (thanks [@tomeon](https://github.com/tomeon))
|
175
|
-
|
176
|
-
0.16.1 (2018-03-16)
|
177
|
-
===================
|
178
|
-
|
179
|
-
## Bugfixes
|
180
|
-
|
181
|
-
* Include the LICENSE in the distributed gem again (accidentally removed in 0.16.0). (thanks @tas50)
|
182
|
-
|
183
|
-
0.16.0 (2018-03-15)
|
184
|
-
===================
|
185
|
-
|
186
|
-
## Enhancements
|
187
|
-
|
188
|
-
* Relax version constraint on `docile`, per SemVer
|
189
|
-
* exception that occurred on exit is available as `exit_exception`! See [#639](https://github.com/simplecov-ruby/simplecov/pull/639) (thanks @thomas07vt)
|
190
|
-
* Performance: processing results now runs from 2.5x to 3.75x faster. See [#662](https://github.com/simplecov-ruby/simplecov/pull/662) (thanks @BMorearty & @eregon)
|
191
|
-
* Decrease gem size by only shipping lib and docs
|
192
|
-
|
193
|
-
## Bugfixes
|
194
|
-
|
195
|
-
* (breaking) Stop handling string filters as regular expressions, use the dedicated regex filter if you need that behaviour. See [#616](https://github.com/simplecov-ruby/simplecov/pull/616) (thanks @yujinakayama)
|
196
|
-
* Avoid overwriting the last coverage results on unsuccessful test runs. See [#625](https://github.com/simplecov-ruby/simplecov/pull/625) (thanks @thomas07vt)
|
197
|
-
* Don't crash on invalid UTF-8 byte sequences. (thanks @BMorearty)
|
198
|
-
|
199
|
-
0.15.1 (2017-09-11) ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.15.0...v0.15.1))
|
200
|
-
=======
|
201
|
-
|
202
|
-
## Bugfixes
|
203
|
-
|
204
|
-
* Filter directories outside SimpleCov.root that have it as a prefix. See [#617](https://github.com/simplecov-ruby/simplecov/pull/617) (thanks @jenseng)
|
205
|
-
* Fix standard rails profile rails filter (didn't work). See [#618](https://github.com/simplecov-ruby/simplecov/pull/618) (thanks @jenseng again!)
|
206
|
-
|
207
|
-
0.15.0 (2017-08-14) ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.14.1...v0.15.0))
|
208
|
-
=======
|
209
|
-
|
210
|
-
## Enhancements
|
211
|
-
|
212
|
-
* Ability to use regex filters for removing files from the output. See [#589](https://github.com/simplecov-ruby/simplecov/pull/589) (thanks @jsteel)
|
213
|
-
|
214
|
-
## Bugfixes
|
215
|
-
|
216
|
-
* Fix merging race condition when running tests in parallel and merging them. See [#570](https://github.com/simplecov-ruby/simplecov/pull/570) (thanks @jenseng)
|
217
|
-
* Fix relevant lines for unloaded files - comments, skipped code etc. are correctly classified as irrelevant. See [#605](https://github.com/simplecov-ruby/simplecov/pull/605) (thanks @odlp)
|
218
|
-
* Allow using simplecov with frozen-string-literals enabled. See [#590](https://github.com/simplecov-ruby/simplecov/pull/590) (thanks @pat)
|
219
|
-
* Make sure Array Filter can use all other filter types. See [#589](https://github.com/simplecov-ruby/simplecov/pull/589) (thanks @jsteel)
|
220
|
-
* Make sure file names use `Simplecov.root` as base avoiding using full absolute project paths. See [#589](https://github.com/simplecov-ruby/simplecov/pull/589) (thanks @jsteel)
|
221
|
-
|
222
|
-
0.14.1 2017-03-18 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.14.0...v0.14.1))
|
223
|
-
========
|
224
|
-
|
225
|
-
## Bugfixes
|
226
|
-
|
227
|
-
* Files that were skipped as a whole/had no relevant coverage could lead to Float errors. See [#564](https://github.com/simplecov-ruby/simplecov/pull/564) (thanks to @stevehanson for the report in [#563](https://github.com/simplecov-ruby/simplecov/issues/563))
|
228
|
-
|
229
|
-
0.14.0 2017-03-15 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.13.0...v0.14.0))
|
230
|
-
==========
|
231
|
-
|
232
|
-
## Enhancements
|
233
|
-
|
234
|
-
* Officially support JRuby 9.1+ going forward (should also work with previous releases). See [#547](https://github.com/simplecov-ruby/simplecov/pull/547) (ping @PragTob when encountering issues)
|
235
|
-
* Add Channel group to Rails profile, when `ActionCable` is loaded. See [#492](https://github.com/simplecov-ruby/simplecov/pull/492) (thanks @BenMorganIO)
|
236
|
-
* Stop `extend`ing instances of `Array` and `Hash` during merging results avoiding problems frozen results while manually merging results. See [#558](https://github.com/simplecov-ruby/simplecov/pull/558) (thanks @aroben)
|
237
|
-
|
238
|
-
## Bugfixes
|
239
|
-
|
240
|
-
* Fix parallel_tests when a thread ends up running no tests. See [#533](https://github.com/simplecov-ruby/simplecov/pull/533) (thanks @cshaffer)
|
241
|
-
* Skip the `:nocov:` comments along with the code that they skip. See [#551](https://github.com/simplecov-ruby/simplecov/pull/551) (thanks @ebiven)
|
242
|
-
* Fix crash when Home environment variable is unset. See [#482](https://github.com/simplecov-ruby/simplecov/pull/482) (thanks @waldyr)
|
243
|
-
* Make track_files work again when explicitly setting it to nil. See [#463](https://github.com/simplecov-ruby/simplecov/pull/463) (thanks @craiglittle)
|
244
|
-
* Do not overwrite .last_run.json file when refuse_coverage_drop option is enabled and the coverage has dropped (lead to you being able to just rerun tests and everything was _fine_). See [#553](https://github.com/simplecov-ruby/simplecov/pull/553) (thanks @Miloshes)
|
245
|
-
|
246
|
-
0.13.0 2017-01-25 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.12.0...v0.13.0))
|
247
|
-
==========
|
248
|
-
|
249
|
-
## Enhancements
|
250
|
-
|
251
|
-
* Faster run times when a very large number of files is loaded into SimpleCov. See [#520](https://github.com/simplecov-ruby/simplecov/pull/520) (thanks @alyssais)
|
252
|
-
* Only read in source code files that are actually used (faster when files are ignored etc.). See [#540](https://github.com/simplecov-ruby/simplecov/pull/540) (thanks @yui-knk)
|
253
|
-
|
254
|
-
## Bugfixes
|
255
|
-
|
256
|
-
* Fix merging of resultsets if a file is missing on one side. See [#513](https://github.com/simplecov-ruby/simplecov/pull/513) (thanks @hanazuki)
|
257
|
-
* Fix Ruby 2.4 deprecation warnings by using Integer instead of Fixnum. See [#523](https://github.com/simplecov-ruby/simplecov/pull/523) (thanks @nobu)
|
258
|
-
* Force Ruby 2 to json 2. See [dc7417d50](https://github.com/simplecov-ruby/simplecov/commit/dc7417d5049b1809cea214314c15dd93a5dd964f) (thanks @amatsuda)
|
259
|
-
* Various other gem dependency fixes for different gems on different ruby versions. (thanks @amatsuda)
|
260
|
-
|
261
|
-
0.12.0 2016-07-02 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.11.2...v0.12.0))
|
262
|
-
=================
|
263
|
-
|
264
|
-
## Enhancements
|
265
|
-
|
266
|
-
* Add support for JSON versions 2.x
|
267
|
-
|
268
|
-
## Bugfixes
|
269
|
-
|
270
|
-
* Fix coverage rate of the parallel_tests. See [#441](https://github.com/simplecov-ruby/simplecov/pull/441) (thanks @sinsoku)
|
271
|
-
* Fix a regression on old rubies that failed to work with the recently introduced frozen VERSION string. See [#461](https://github.com/simplecov-ruby/simplecov/pull/461) (thanks @leafle)
|
272
|
-
|
273
|
-
0.11.2 2016-02-03 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.11.1...v0.11.2))
|
274
|
-
=================
|
275
|
-
|
276
|
-
## Enhancements
|
277
|
-
|
278
|
-
* Do not globally pollute Array and Hash with `merge_resultset` utility methods. See [#449](https://github.com/simplecov-ruby/simplecov/pull/449) (thanks @amatsuda)
|
279
|
-
* Do not `mkdir_p` the `coverage_path` on every access of the method (See [#453](https://github.com/simplecov-ruby/simplecov/pull/453) (thanks @paddor)
|
280
|
-
* Fixes a Ruby warning related to the `track_files` configuration. See [#447](https://github.com/simplecov-ruby/simplecov/pull/447) (thanks @craiglittle)
|
281
|
-
* Add a group for background jobs to default Rails profile. See [#442](https://github.com/simplecov-ruby/simplecov/pull/442) (thanks @stve)
|
282
|
-
|
283
|
-
## Bugfixes
|
284
|
-
|
285
|
-
* Fix root_filter evaluates SimpleCov.root before initialization. See [#437](https://github.com/simplecov-ruby/simplecov/pull/437) (thanks @tmtm)
|
286
|
-
|
287
|
-
0.11.1 2015-12-01 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.11.0...v0.11.1))
|
288
|
-
=================
|
289
|
-
|
290
|
-
## Enhancements
|
291
|
-
|
292
|
-
## Bugfixes
|
293
|
-
|
294
|
-
* Fixed regression in `MultiFormatter.[]` with multiple arguments. See [#431](https://github.com/simplecov-ruby/simplecov/pull/431) (thanks @dillondrobena)
|
295
|
-
|
296
|
-
0.11.0 2015-11-29 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.10.0...v0.11.0))
|
297
|
-
=================
|
298
|
-
|
299
|
-
## Enhancements
|
300
|
-
|
301
|
-
* Added `SimpleCov.minimum_coverage_by_file` for per-file coverage thresholds. See [#392](https://github.com/simplecov-ruby/simplecov/pull/392) (thanks @ptashman)
|
302
|
-
* Added `track_files` configuration option to specify a glob to always include in coverage results, whether or not those files are required. By default, this is enabled in the Rails profile for common Rails directories. See [#422](https://github.com/simplecov-ruby/simplecov/pull/422) (thanks @hugopeixoto)
|
303
|
-
* Speed up `root_filter` by an order of magnitude. See [#396](https://github.com/simplecov-ruby/simplecov/pull/396) (thanks @raszi)
|
304
|
-
|
305
|
-
## Bugfixes
|
306
|
-
|
307
|
-
* Fix warning about global variable `$ERROR_INFO`. See [#400](https://github.com/simplecov-ruby/simplecov/pull/400) (thanks @amatsuda)
|
308
|
-
* Actually recurse upward looking for `.simplecov`, as claimed by the documentation, rather than only the working directory. See [#423](https://github.com/simplecov-ruby/simplecov/pull/423) (thanks @alexdowad)
|
309
|
-
|
310
|
-
0.10.0 2015-04-18 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.9.2...v0.10.0))
|
311
|
-
=================
|
312
|
-
|
313
|
-
## Enhancements
|
314
|
-
|
315
|
-
* Add writeup about using with Spring to README. See [#341](https://github.com/simplecov-ruby/simplecov/issues/341) (thanks @swrobel and @onebree)
|
316
|
-
* Add support to pass in an Array when creating filter groups (original PR #104)
|
317
|
-
* Filter `/vendor/bundle` by default. See [#331](https://github.com/simplecov-ruby/simplecov/pull/331) (thanks @andyw8)
|
318
|
-
* Add some helpful singleton methods to the version string.
|
319
|
-
* Allow array to be passed in a filter. See [375](https://github.com/simplecov-ruby/simplecov/pull/375) (thanks @JanStevens)
|
320
|
-
* Enforce consistent code formatting with RuboCop.
|
321
|
-
|
322
|
-
## Bugfixes
|
323
|
-
|
324
|
-
* Fix order dependencies in unit tests. See [#376](https://github.com/simplecov-ruby/simplecov/pull/376) (thanks @hugopeixoto)
|
325
|
-
* Only run the at_exit behaviors if the current PID matches the PID that called SimpleCov.start. See [#377](https://github.com/simplecov-ruby/simplecov/pull/377) (thanks @coderanger)
|
326
|
-
|
327
|
-
0.9.2, 2015-02-18 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.9.1...v0.9.2))
|
328
|
-
=================
|
329
|
-
|
330
|
-
This is a minor bugfix release for simplecov-html, released as `0.9.0`. Due to the tight version constraint in the gemspec
|
331
|
-
a new release of simplecov had to be shipped to allow using simplecov-html `~> 0.9.0`.
|
332
|
-
|
333
|
-
* The browser back / forward button should now work again. See [#36](https://github.com/simplecov-ruby/simplecov-html/pull/36) and
|
334
|
-
[#35](https://github.com/simplecov-ruby/simplecov-html/pull/35). Thanks @whatasunnyday and @justinsteele for submitting PRs to fix this.
|
335
|
-
* Fix "warning: possibly useless use of a variable in void context" See [#31](https://github.com/simplecov-ruby/simplecov-html/pull/31). Thanks @cbandy
|
336
|
-
* Always use binary file format. See [#32](https://github.com/simplecov-ruby/simplecov-html/pull/32). Thanks @andy128k
|
337
|
-
* Avoid slow file output with JRuby/Windows. See [#16](https://github.com/simplecov-ruby/simplecov-html/pull/16). Thanks @pschambacher
|
338
|
-
|
339
|
-
Other than the release includes a bunch of mostly documentation improvements:
|
340
|
-
|
341
|
-
* Update Rails path for Rails 4+. See [#336](https://github.com/simplecov-ruby/simplecov/pull/336). Thanks @yazinsai
|
342
|
-
* Encourage use of .simplecov to avoid lost files. See [#338](https://github.com/simplecov-ruby/simplecov/pull/338). thanks @dankohn
|
343
|
-
* Specified in the gemspec that simplecov needs ruby 1.8.7. See [#343](https://github.com/simplecov-ruby/simplecov/pull/343). thanks @iainbeeston
|
344
|
-
* Fix mispointed link in CHANGELOG.md. See [#353](https://github.com/simplecov-ruby/simplecov/pull/353). Thanks @dleve123
|
345
|
-
* Improve command name docs. See [#356](https://github.com/simplecov-ruby/simplecov/pull/356). Thanks @gtd
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
0.9.1, 2014-09-21 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.9.0...v0.9.1))
|
350
|
-
=================
|
351
|
-
|
352
|
-
## Bugfixes
|
353
|
-
|
354
|
-
* In 0.9.0, we introduced a regression that made SimpleCov no-op mode fail on Ruby 1.8, while
|
355
|
-
dropping 1.8 support altogether is announced only for v1.0. This has been fixed.
|
356
|
-
See [#333](https://github.com/simplecov-ruby/simplecov/issues/333) (thanks (@sferik)
|
357
|
-
|
358
|
-
|
359
|
-
0.9.0, 2014-07-17 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.8.2...v0.9.0))
|
360
|
-
=================
|
361
|
-
|
362
|
-
**A warm welcome and big thank you to the new contributors [@xaviershay](https://github.com/xaviershay), [@sferik](https://github.com/sferik) and especially [@bf4](https://github.com/bf4) for tackling a whole lot of issues and pull requests for this release!**
|
363
|
-
|
364
|
-
## Enhancements
|
365
|
-
|
366
|
-
* New interface to specify multiple formatters.
|
367
|
-
See [#317](https://github.com/simplecov-ruby/simplecov/pull/317) (thanks @sferik)
|
368
|
-
* Document in the README how to exclude code from coverage reports,
|
369
|
-
and that the feature shouldn't be abused for skipping untested
|
370
|
-
private code.
|
371
|
-
See [#304](https://github.com/simplecov-ruby/simplecov/issues/304)
|
372
|
-
* Clarify Ruby version support.
|
373
|
-
See [#279](https://github.com/simplecov-ruby/simplecov/pull/279) (thanks @deivid-rodriguez)
|
374
|
-
|
375
|
-
## Bugfixes
|
376
|
-
|
377
|
-
* Ensure calculations return Floats, not Fixnum or Rational. Fixes segfaults with mathn.
|
378
|
-
See [#245](https://github.com/simplecov-ruby/simplecov/pull/245) (thanks to @bf4)
|
379
|
-
* Using `Kernel.exit` instead of exit to avoid uncaught throw :IRB_EXIT when
|
380
|
-
exiting irb sessions.
|
381
|
-
See [#287](https://github.com/simplecov-ruby/simplecov/pull/287) (thanks @wless1)
|
382
|
-
See [#285](https://github.com/simplecov-ruby/simplecov/issues/285)
|
383
|
-
* Does not look for .simplecov in ~/ when $HOME is not set.
|
384
|
-
See [#311](https://github.com/simplecov-ruby/simplecov/pull/311) (thanks @lasseebert)
|
385
|
-
* Exit with code only if it's Numeric > 0.
|
386
|
-
See [#302](https://github.com/simplecov-ruby/simplecov/pull/302) (thanks @hajder)
|
387
|
-
* Make default filter case insensitive.
|
388
|
-
See [#280](https://github.com/simplecov-ruby/simplecov/pull/280) (thanks @ryanatball)
|
389
|
-
* Improve regexp that matches functional tests.
|
390
|
-
See [#276](https://github.com/simplecov-ruby/simplecov/pull/276) (thanks @sferik)
|
391
|
-
* Fix TravisCI [#272](https://github.com/simplecov-ruby/simplecov/pull/272) [#278](https://github.com/simplecov-ruby/simplecov/pull/278), [#302](https://github.com/simplecov-ruby/simplecov/pull/302)
|
392
|
-
* Fix global config load.
|
393
|
-
See [#311](https://github.com/simplecov-ruby/simplecov/pull/311) (thanks @lasseebert)
|
394
|
-
|
395
|
-
v0.8.2, 2013-11-20 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.8.1...v0.8.2))
|
396
|
-
==================
|
397
|
-
|
398
|
-
## Bugfixes
|
399
|
-
|
400
|
-
* Replaced the locking behaviour [via lockfile gem](https://github.com/simplecov-ruby/simplecov/pull/185) with
|
401
|
-
plain Ruby explicit file locking when merging results. This should make simplecov merging to behave well
|
402
|
-
on Windows again.
|
403
|
-
See [#258](https://github.com/simplecov-ruby/simplecov/issues/258) and
|
404
|
-
[#223](https://github.com/simplecov-ruby/simplecov/pull/223) (thanks to @tomykaira)
|
405
|
-
|
406
|
-
v0.8.1, 2013-11-10 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.8.0...v0.8.1))
|
407
|
-
==================
|
408
|
-
|
409
|
-
## Bugfixes
|
410
|
-
|
411
|
-
* Fixed a regression introduced in 0.8.0 - the Forwardable STDLIB module is now required explicitly.
|
412
|
-
See [#256](https://github.com/simplecov-ruby/simplecov/pull/256) (thanks to @kylev)
|
413
|
-
|
414
|
-
v0.8.0, 2013-11-10 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.7.1...v0.8.0))
|
415
|
-
==================
|
416
|
-
|
417
|
-
**Note: Yanked the same day because of the regression that 0.8.1 fixes, see above**
|
418
|
-
|
419
|
-
## TL;DR
|
420
|
-
|
421
|
-
It's been way too long since the last official release 0.7.1, but this was partly due to it proving itself
|
422
|
-
quite stable in most circumstances. This release brings various further stability improvements to result set merging
|
423
|
-
(especially when working with parallel_tests), the configuration, source file encodings, and command name guessing.
|
424
|
-
|
425
|
-
The 0.8 line is the last one to cooperate with Ruby < 1.9. Starting with 0.9, SimpleCov will assume to be running in
|
426
|
-
Ruby 1.9+, and will not try to detect or bail silently on older Ruby versions. An appropriate deprecation warning
|
427
|
-
has been added.
|
428
|
-
|
429
|
-
## Features
|
430
|
-
|
431
|
-
* Configuration blocks now have access to variables and methods outside of the block's scope.
|
432
|
-
See [#238](https://github.com/simplecov-ruby/simplecov/pull/238) (thanks to @ms-tg)
|
433
|
-
* You can now have a global `~/.simplecov` configuration file.
|
434
|
-
See [#195](https://github.com/simplecov-ruby/simplecov/pull/195) (thanks to @spagalloco)
|
435
|
-
* simplecov-html now uses the MIT-licensed colorbox plugin. Some adjustments when viewing source files,
|
436
|
-
including retaining the currently open file on refresh have been added.
|
437
|
-
See [simplecov-html #15](https://github.com/simplecov-ruby/simplecov-html/pull/15) (thanks to @chetan)
|
438
|
-
* Adds support for Rails 4 command guessing, removes default group `vendor/plugins`.
|
439
|
-
See [#181](https://github.com/simplecov-ruby/simplecov/pull/181) and
|
440
|
-
[#203](https://github.com/simplecov-ruby/simplecov/pull/203) (thanks to @semanticart and @phallstrom)
|
441
|
-
* You can now load simplecov without the default settings by doing `require 'simplecov/no_defaults'`
|
442
|
-
or setting `ENV['SIMPLECOV_NO_DEFAULTS']`. Check `simplecov/defaults` to see what preconfigurations are getting
|
443
|
-
dropped by using this. See [#209](https://github.com/simplecov-ruby/simplecov/pull/209) (thanks to @ileitch)
|
444
|
-
* The result set merging now uses the `lockfile` gem to avoid race conditions.
|
445
|
-
See [#185](https://github.com/simplecov-ruby/simplecov/pull/185) (thanks to @jshraibman-mdsol).
|
446
|
-
* Automatically detect the usage of parallel_tests and adjust the command name with the test env number accordingly,
|
447
|
-
See [#64](https://github.com/simplecov-ruby/simplecov/issues/64) and
|
448
|
-
[#185](https://github.com/simplecov-ruby/simplecov/pull/185) (thanks to @jshraibman-mdsol).
|
449
|
-
|
450
|
-
## Enhancements
|
451
|
-
|
452
|
-
* Rename adapters to "profiles" given that they are bundles of settings. The old adapter methods are
|
453
|
-
deprecated, but remain available for now.
|
454
|
-
See [#207](https://github.com/simplecov-ruby/simplecov/pull/207) (thanks to @mikerobe)
|
455
|
-
* Tweaks to the automatic test suite naming. In particular, `rspec/features` should now
|
456
|
-
be correctly attributed to RSpec, not Cucumber.
|
457
|
-
See [#212](https://github.com/simplecov-ruby/simplecov/pull/212) (thanks to @ersatzryan and @betelgeuse)
|
458
|
-
* MiniTest should now be identified correctly by the command name guesser.
|
459
|
-
See [#244](https://github.com/simplecov-ruby/simplecov/pull/244) (thanks to @envygeeks)
|
460
|
-
* Makes SimpleCov resilient to inclusion of mathn library.
|
461
|
-
See [#175](https://github.com/simplecov-ruby/simplecov/pull/175) and
|
462
|
-
[#140](https://github.com/simplecov-ruby/simplecov/issues/140) (thanks to @scotje)
|
463
|
-
* Allow coverage_dir to be an absolute path.
|
464
|
-
* See [#190](https://github.com/simplecov-ruby/simplecov/pull/190) (thanks to @jshraibman-mdsol)
|
465
|
-
* The internal cucumber test suite now uses Capybara 2.
|
466
|
-
See [#206](https://github.com/simplecov-ruby/simplecov/pull/206) (thanks to @infertux)
|
467
|
-
* Work-arounds for the Coverage library shipped in JRuby 1.6 to behave in line with MRI.
|
468
|
-
See [#174](https://github.com/simplecov-ruby/simplecov/pull/174) (thanks to @grddev)
|
469
|
-
* Fix warning: instance variable @exit_status not initialized.
|
470
|
-
See [#242](https://github.com/simplecov-ruby/simplecov/pull/242) and
|
471
|
-
[#213](https://github.com/simplecov-ruby/simplecov/pull/213) (thanks to @sferik and @infertux)
|
472
|
-
|
473
|
-
## Bugfixes
|
474
|
-
|
475
|
-
* Correct result calculations for people using :nocov: tags.
|
476
|
-
See [#215](https://github.com/simplecov-ruby/simplecov/pull/215) (thanks to @aokolish)
|
477
|
-
* Average hits per line for groups of files is now computed correctly.
|
478
|
-
See [#192](http://github.com/simplecov-ruby/simplecov/pull/192) and
|
479
|
-
[#179](http://github.com/simplecov-ruby/simplecov/issues/179) (thanks to @graysonwright)
|
480
|
-
* Compatibility with BINARY internal encoding.
|
481
|
-
See [#194](https://github.com/simplecov-ruby/simplecov/pull/194) and
|
482
|
-
[#127](https://github.com/simplecov-ruby/simplecov/issues/127) (thanks to @justfalter)
|
483
|
-
* Special characters in `SimpleCov.root` are now correctly escaped before being used as a RegExp.
|
484
|
-
See [#204](https://github.com/simplecov-ruby/simplecov/issues/204) and
|
485
|
-
[#237](https://github.com/simplecov-ruby/simplecov/pull/237) (thanks to @rli9)
|
486
|
-
|
487
|
-
v0.7.1, 2012-10-12 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.7.0...v0.7.1))
|
488
|
-
==================
|
489
|
-
|
490
|
-
* [BUGFIX] The gem packages of 0.7.0 (both simplecov and simplecov-html) pushed to Rubygems had some file
|
491
|
-
permission issues, leading to problems when installing SimpleCov in a root/system Rubygems install and then
|
492
|
-
trying to use it as a normal user (see https://github.com/simplecov-ruby/simplecov/issues/171, thanks @envygeeks
|
493
|
-
for bringing it up). The gem build process has been changed to always enforce proper permissions before packaging
|
494
|
-
to avoid this issue in the future.
|
495
|
-
|
496
|
-
|
497
|
-
v0.7.0, 2012-10-10 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.6.4...v0.7.0))
|
498
|
-
==================
|
499
|
-
|
500
|
-
* [FEATURE] The new `maximum_coverage_drop` and `minimum_coverage` now allow you to fail your build when the
|
501
|
-
coverage dropped by more than what you allowed or is below a minimum value required. Also, `refuse_coverage_drop` disallows
|
502
|
-
any coverage drops between test runs.
|
503
|
-
See https://github.com/simplecov-ruby/simplecov/pull/151, https://github.com/simplecov-ruby/simplecov/issues/11,
|
504
|
-
https://github.com/simplecov-ruby/simplecov/issues/90, and https://github.com/simplecov-ruby/simplecov/issues/96 (thanks to @infertux)
|
505
|
-
* [FEATURE] SimpleCov now ships with a built-in MultiFormatter which allows the easy usage of multiple result formatters at
|
506
|
-
the same time without the need to write custom wrapper code.
|
507
|
-
See https://github.com/simplecov-ruby/simplecov/pull/158 (thanks to @nikitug)
|
508
|
-
* [BUGFIX] The usage of digits, hyphens and underscores in group names could lead to broken tab navigation
|
509
|
-
in the default simplecov-html reports. See https://github.com/simplecov-ruby/simplecov-html/pull/14 (thanks to @ebelgarts)
|
510
|
-
* [REFACTORING] A few more ruby warnings removed. See https://github.com/simplecov-ruby/simplecov/issues/106 and
|
511
|
-
https://github.com/simplecov-ruby/simplecov/pull/139. (thanks to @lukejahnke)
|
512
|
-
* A [Pledgie button](https://github.com/simplecov-ruby/simplecov/commit/63cfa99f8658fa5cc66a38c83b3195fdf71b9e93) for those that
|
513
|
-
feel generous :)
|
514
|
-
* The usual bunch of README fixes and documentation tweaks. Thanks to everyone who contributed those!
|
515
|
-
|
516
|
-
v0.6.4, 2012-05-10 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.6.3...v0.6.4))
|
517
|
-
==================
|
518
|
-
|
519
|
-
* [BUGFIX] Encoding issues with ISO-8859-encoded source files fixed.
|
520
|
-
See https://github.com/simplecov-ruby/simplecov/pull/117. (thanks to @Deradon)
|
521
|
-
* [BUGFIX] Ensure ZeroDivisionErrors won't occur when calculating the coverage result, which previously
|
522
|
-
could happen in certain cases. See https://github.com/simplecov-ruby/simplecov/pull/128. (thanks to @japgolly)
|
523
|
-
* [REFACTORING] Changed a couple instance variable lookups so SimpleCov does not cause a lot of warnings when
|
524
|
-
running ruby at a higher warning level. See https://github.com/simplecov-ruby/simplecov/issues/106 and
|
525
|
-
https://github.com/simplecov-ruby/simplecov/pull/119. (thanks to @mvz and @gioele)
|
526
|
-
|
527
|
-
|
528
|
-
v0.6.3, 2012-05-10 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.6.2...v0.6.3))
|
529
|
-
==================
|
530
|
-
|
531
|
-
* [BUGFIX] Modified the API-changes for newer multi_json versions introduced with #122 and v0.6.2 so
|
532
|
-
they are backwards-compatible with older multi_json gems in order to avoid simplecov polluting
|
533
|
-
the multi_json minimum version requirement for entire applications.
|
534
|
-
See https://github.com/simplecov-ruby/simplecov/issues/132
|
535
|
-
* Added appraisal gem to the test setup in order to run the test suite against both 1.0 and 1.3
|
536
|
-
multi_json gems and ensure the above actually works :)
|
537
|
-
|
538
|
-
v0.6.2, 2012-04-20 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.6.1...v0.6.2))
|
539
|
-
==================
|
540
|
-
|
541
|
-
* [Updated to latest version of MultiJSON and its new API (thanks to @sferik and @ronen).
|
542
|
-
See https://github.com/simplecov-ruby/simplecov/pull/122
|
543
|
-
|
544
|
-
v0.6.1, 2012-02-24 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.6.0...v0.6.1))
|
545
|
-
==================
|
546
|
-
|
547
|
-
* [BUGFIX] Don't force-load Railtie on Rails < 3. Fixes regression introduced with
|
548
|
-
#83. See https://github.com/simplecov-ruby/simplecov/issues/113
|
549
|
-
|
550
|
-
v0.6.0, 2012-02-22 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.5.4...v0.6.0))
|
551
|
-
==================
|
552
|
-
|
553
|
-
* [FEATURE] Auto-magic `rake simplecov` task for rails
|
554
|
-
(see https://github.com/simplecov-ruby/simplecov/pull/83, thanks @sunaku)
|
555
|
-
* [BUGFIX] Treat source files as UTF-8 to avoid encoding errors
|
556
|
-
(see https://github.com/simplecov-ruby/simplecov/pull/103, thanks @joeyates)
|
557
|
-
* [BUGFIX] Store the invoking terminal command right after loading so they are safe from
|
558
|
-
other libraries tampering with ARGV. Among other makes automatic Rails test suite splitting
|
559
|
-
(Unit/Functional/Integration) work with recent rake versions again
|
560
|
-
(see https://github.com/simplecov-ruby/simplecov/issues/110)
|
561
|
-
* [FEATURE] If guessing command name from the terminal command fails, try guessing from defined constants
|
562
|
-
(see https://github.com/simplecov-ruby/simplecov/commit/37afca54ef503c33d888e910f950b3b943cb9a6c)
|
563
|
-
* Some refactorings and cleanups as usual. Please refer to the github compare view for a full
|
564
|
-
list of changes: https://github.com/simplecov-ruby/simplecov/compare/v0.5.4...v0.6.0
|
565
|
-
|
566
|
-
v0.5.4, 2011-10-12 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.5.3...v0.5.4))
|
567
|
-
==================
|
568
|
-
|
569
|
-
* Do not give exit code 0 when there are exceptions prior to tests
|
570
|
-
(see https://github.com/simplecov-ruby/simplecov/issues/41, thanks @nbogie)
|
571
|
-
* The API for building custom filter classes is now more obvious, using #matches? instead of #passes? too.
|
572
|
-
(see https://github.com/simplecov-ruby/simplecov/issues/85, thanks @robinroestenburg)
|
573
|
-
* Mailers are now part of the Rails adapter as their own group (see
|
574
|
-
https://github.com/simplecov-ruby/simplecov/issues/79, thanks @geetarista)
|
575
|
-
* Removed fix for JRuby 1.6 RC1 float bug because it's been fixed
|
576
|
-
(see https://github.com/simplecov-ruby/simplecov/issues/86)
|
577
|
-
* Readme formatted in Markdown :)
|
578
|
-
|
579
|
-
v0.5.3, 2011-09-13 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.5.2...v0.5.3))
|
580
|
-
==================
|
581
|
-
|
582
|
-
* Fix for encoding issues that came from the nocov processing mechanism
|
583
|
-
(see https://github.com/simplecov-ruby/simplecov/issues/71)
|
584
|
-
* :nocov: lines are now actually being reflected in the HTML report and are marked in yellow.
|
585
|
-
|
586
|
-
* The Favicon in the HTML report is now determined by the overall coverage and will have the color
|
587
|
-
that the coverage percentage gets as a css class to immediately indicate coverage status on first sight.
|
588
|
-
|
589
|
-
* Introduced SimpleCov::SourceFile::Line#status method that returns the coverage status
|
590
|
-
as a string for this line - made SimpleCov::HTML use that.
|
591
|
-
* Refactored nocov processing and made it configurable using SimpleCov.ncov_token (or it's
|
592
|
-
alias SimpleCov.skip_token)
|
593
|
-
|
594
|
-
v0.5.2, 2011-09-12 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.5.1...v0.5.2))
|
595
|
-
==================
|
596
|
-
|
597
|
-
* Another fix for a bug in JSON processing introduced with MultiJSON in 0.5.1
|
598
|
-
(see https://github.com/simplecov-ruby/simplecov/pull/75, thanks @sferik)
|
599
|
-
|
600
|
-
v0.5.1, 2011-09-12 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.5.0...v0.5.1))
|
601
|
-
==================
|
602
|
-
**Note: Yanked 2011-09-12 because the MultiJSON-patch had a crucial bug**
|
603
|
-
|
604
|
-
* Fix for invalid gemspec dependency string (see https://github.com/simplecov-ruby/simplecov/pull/70,
|
605
|
-
http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yacc.html, thanks @jspradlin)
|
606
|
-
|
607
|
-
* Added JSON in the form of the multi_json gem as dependency for those cases when built-in JSON
|
608
|
-
is unavailable (see https://github.com/simplecov-ruby/simplecov/issues/72
|
609
|
-
and https://github.com/simplecov-ruby/simplecov/pull/74, thanks @sferik)
|
610
|
-
|
611
|
-
v0.5.0, 2011-09-09 ([changes](https://github.com/simplecov-ruby/simplecov/compare/v0.4.2...v0.5.4))
|
612
|
-
==================
|
613
|
-
**Note: Yanked 2011-09-09 because of trouble with the gemspec.**
|
614
|
-
|
615
|
-
* JSON is now used instead of YAML for resultset caching (used for merging). Should resolve
|
616
|
-
a lot of problems people used to have because of YAML parser errors.
|
617
|
-
|
618
|
-
* There's a new adapter 'test_frameworks'. Use it outside of Rails to remove `test/`,
|
619
|
-
`spec/`, `features/` and `autotest/` dirs from your coverage reports, either directly
|
620
|
-
with `SimpleCov.start 'test_frameworks'` or with `SimpleCov.load_adapter 'test_frameworks'`
|
621
|
-
|
622
|
-
* SimpleCov configuration can now be placed centrally in a text file `.simplecov`, which will
|
623
|
-
be automatically read on `require 'simplecov'`. This makes using custom configuration like
|
624
|
-
groups and filters across your test suites much easier as you only have to specify your config
|
625
|
-
once. Just put the whole `SimpleCov.start (...)` code into `APP_ROOT/.simplecov`
|
626
|
-
|
627
|
-
* Lines can now be skipped by using the :nocov: flag in comments that wrap the code that should be
|
628
|
-
skipped, like in this example (thanks @phillipkoebbe)
|
629
|
-
|
630
|
-
<pre>
|
631
|
-
#:nocov:
|
632
|
-
def skipped
|
633
|
-
@foo * 2
|
634
|
-
end
|
635
|
-
#:nocov:
|
636
|
-
</pre>
|
637
|
-
|
638
|
-
* Moved file set coverage analytics from simplecov-html to SimpleCov::FileList, a new subclass
|
639
|
-
of Array that is always returned for SourceFile lists (i.e. in groups) and can now be used
|
640
|
-
in all formatters without the need to roll your own.
|
641
|
-
|
642
|
-
* The exceptions you used to get after removing some code and re-running your tests because SimpleCov
|
643
|
-
couldn't find the cached source lines should be resolved (thanks @goneflyin)
|
644
|
-
|
645
|
-
* Coverage strength metric: Average hits/line per source file and result group (thanks @trans)
|
164
|
+
Older Changelogs
|
165
|
+
================
|
646
166
|
|
647
|
-
|
648
|
-
|
649
|
-
* Full compatibility with Ruby 1.9.3.preview1
|
650
|
-
|
651
|
-
### HTML Formatter:
|
652
|
-
|
653
|
-
* The display of source files has been improved a lot. Weird scrolling trouble, out-of-scope line hit counts
|
654
|
-
and such should be a thing of the past. Also, it is prettier now.
|
655
|
-
* Source files are now syntax highlighted
|
656
|
-
* File paths no longer have that annoying './' in front of them
|
167
|
+
Looking for older changelogs? Please check the [old Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.old.md)
|