simplecov 0.6.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +163 -80
  3. data/LICENSE +1 -1
  4. data/README.md +776 -277
  5. data/doc/alternate-formatters.md +71 -0
  6. data/doc/commercial-services.md +25 -0
  7. data/doc/editor-integration.md +18 -0
  8. data/lib/minitest/simplecov_plugin.rb +15 -0
  9. data/lib/simplecov/combine/branches_combiner.rb +32 -0
  10. data/lib/simplecov/combine/files_combiner.rb +24 -0
  11. data/lib/simplecov/combine/lines_combiner.rb +43 -0
  12. data/lib/simplecov/combine/results_combiner.rb +60 -0
  13. data/lib/simplecov/combine.rb +30 -0
  14. data/lib/simplecov/command_guesser.rb +53 -38
  15. data/lib/simplecov/configuration.rb +478 -193
  16. data/lib/simplecov/coverage_statistics.rb +56 -0
  17. data/lib/simplecov/default_formatter.rb +20 -0
  18. data/lib/simplecov/defaults.rb +40 -44
  19. data/lib/simplecov/exit_codes/exit_code_handling.rb +29 -0
  20. data/lib/simplecov/exit_codes/maximum_coverage_drop_check.rb +83 -0
  21. data/lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb +54 -0
  22. data/lib/simplecov/exit_codes/minimum_overall_coverage_check.rb +53 -0
  23. data/lib/simplecov/exit_codes.rb +15 -0
  24. data/lib/simplecov/file_list.rb +112 -36
  25. data/lib/simplecov/filter.rb +54 -4
  26. data/lib/simplecov/formatter/multi_formatter.rb +32 -0
  27. data/lib/simplecov/formatter/simple_formatter.rb +21 -15
  28. data/lib/simplecov/formatter.rb +4 -1
  29. data/lib/simplecov/last_run.rb +28 -0
  30. data/lib/simplecov/lines_classifier.rb +48 -0
  31. data/lib/simplecov/load_global_config.rb +8 -0
  32. data/lib/simplecov/no_defaults.rb +4 -0
  33. data/lib/simplecov/process.rb +19 -0
  34. data/lib/simplecov/profiles/bundler_filter.rb +5 -0
  35. data/lib/simplecov/profiles/hidden_filter.rb +5 -0
  36. data/lib/simplecov/profiles/rails.rb +18 -0
  37. data/lib/simplecov/profiles/root_filter.rb +10 -0
  38. data/lib/simplecov/profiles/test_frameworks.rb +8 -0
  39. data/lib/simplecov/profiles.rb +35 -0
  40. data/lib/simplecov/result.rb +33 -64
  41. data/lib/simplecov/result_adapter.rb +30 -0
  42. data/lib/simplecov/result_merger.rb +178 -64
  43. data/lib/simplecov/simulate_coverage.rb +29 -0
  44. data/lib/simplecov/source_file/branch.rb +84 -0
  45. data/lib/simplecov/source_file/line.rb +72 -0
  46. data/lib/simplecov/source_file.rb +304 -123
  47. data/lib/simplecov/useless_results_remover.rb +18 -0
  48. data/lib/simplecov/version.rb +4 -2
  49. data/lib/simplecov.rb +396 -49
  50. metadata +81 -242
  51. data/.gitignore +0 -30
  52. data/.rvmrc +0 -1
  53. data/.travis.yml +0 -13
  54. data/Gemfile +0 -9
  55. data/Rakefile +0 -16
  56. data/cucumber.yml +0 -13
  57. data/features/config_adapters.feature +0 -44
  58. data/features/config_autoload.feature +0 -46
  59. data/features/config_command_name.feature +0 -33
  60. data/features/config_coverage_dir.feature +0 -20
  61. data/features/config_deactivate_merging.feature +0 -42
  62. data/features/config_merge_timeout.feature +0 -38
  63. data/features/config_nocov_token.feature +0 -79
  64. data/features/config_project_name.feature +0 -27
  65. data/features/config_styles.feature +0 -93
  66. data/features/cucumber_basic.feature +0 -29
  67. data/features/merging_test_unit_and_rspec.feature +0 -44
  68. data/features/rspec_basic.feature +0 -31
  69. data/features/rspec_fails_on_initialization.feature +0 -14
  70. data/features/rspec_groups_and_filters_basic.feature +0 -29
  71. data/features/rspec_groups_and_filters_complex.feature +0 -35
  72. data/features/rspec_groups_using_filter_class.feature +0 -40
  73. data/features/rspec_without_simplecov.feature +0 -20
  74. data/features/skipping_code_blocks_manually.feature +0 -70
  75. data/features/step_definitions/html_steps.rb +0 -45
  76. data/features/step_definitions/simplecov_steps.rb +0 -61
  77. data/features/step_definitions/transformers.rb +0 -13
  78. data/features/step_definitions/web_steps.rb +0 -64
  79. data/features/support/env.rb +0 -26
  80. data/features/test_unit_basic.feature +0 -34
  81. data/features/test_unit_groups_and_filters_basic.feature +0 -29
  82. data/features/test_unit_groups_and_filters_complex.feature +0 -35
  83. data/features/test_unit_groups_using_filter_class.feature +0 -40
  84. data/features/test_unit_without_simplecov.feature +0 -20
  85. data/features/unicode_compatiblity.feature +0 -67
  86. data/lib/simplecov/adapters.rb +0 -29
  87. data/lib/simplecov/merge_helpers.rb +0 -39
  88. data/lib/simplecov/railtie.rb +0 -7
  89. data/lib/simplecov/railties/tasks.rake +0 -11
  90. data/simplecov.gemspec +0 -28
  91. data/test/faked_project/Gemfile +0 -6
  92. data/test/faked_project/Rakefile +0 -8
  93. data/test/faked_project/cucumber.yml +0 -13
  94. data/test/faked_project/features/step_definitions/my_steps.rb +0 -23
  95. data/test/faked_project/features/support/env.rb +0 -12
  96. data/test/faked_project/features/test_stuff.feature +0 -6
  97. data/test/faked_project/lib/faked_project/framework_specific.rb +0 -18
  98. data/test/faked_project/lib/faked_project/meta_magic.rb +0 -24
  99. data/test/faked_project/lib/faked_project/some_class.rb +0 -29
  100. data/test/faked_project/lib/faked_project.rb +0 -11
  101. data/test/faked_project/spec/faked_spec.rb +0 -11
  102. data/test/faked_project/spec/meta_magic_spec.rb +0 -10
  103. data/test/faked_project/spec/some_class_spec.rb +0 -10
  104. data/test/faked_project/spec/spec_helper.rb +0 -15
  105. data/test/faked_project/test/faked_test.rb +0 -11
  106. data/test/faked_project/test/meta_magic_test.rb +0 -13
  107. data/test/faked_project/test/some_class_test.rb +0 -15
  108. data/test/faked_project/test/test_helper.rb +0 -16
  109. data/test/fixtures/app/controllers/sample_controller.rb +0 -10
  110. data/test/fixtures/app/models/user.rb +0 -10
  111. data/test/fixtures/deleted_source_sample.rb +0 -15
  112. data/test/fixtures/frameworks/rspec_bad.rb +0 -9
  113. data/test/fixtures/frameworks/rspec_good.rb +0 -9
  114. data/test/fixtures/frameworks/testunit_bad.rb +0 -9
  115. data/test/fixtures/frameworks/testunit_good.rb +0 -9
  116. data/test/fixtures/resultset1.rb +0 -4
  117. data/test/fixtures/resultset2.rb +0 -5
  118. data/test/fixtures/sample.rb +0 -16
  119. data/test/fixtures/utf-8.rb +0 -3
  120. data/test/helper.rb +0 -35
  121. data/test/shoulda_macros.rb +0 -29
  122. data/test/test_1_8_fallbacks.rb +0 -33
  123. data/test/test_command_guesser.rb +0 -21
  124. data/test/test_deleted_source.rb +0 -16
  125. data/test/test_file_list.rb +0 -24
  126. data/test/test_filters.rb +0 -80
  127. data/test/test_merge_helpers.rb +0 -107
  128. data/test/test_result.rb +0 -147
  129. data/test/test_return_codes.rb +0 -39
  130. data/test/test_source_file.rb +0 -86
  131. data/test/test_source_file_line.rb +0 -110
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 53fa0b46a6da5abd78be052c332c7bc956bb9a432e929965f1cfd460d637c21d
4
+ data.tar.gz: 714c61ef2abd25f9fc78e0f56681811eb571904c9348775acf5b7b13ad002dfe
5
+ SHA512:
6
+ metadata.gz: f2e715ac3b3067755b2f32981359736cbb5335606b83e84523b03b37d93804d39bbd1f40099d78058d21dad038623911eb031d672fbad97f1fdaa292b2c3652b
7
+ data.tar.gz: 9155c02eba7b6389c8e19de0c28a2b78017999ca404cadfbaa3cde1ee2012e0420d86471af81b0ced38dedef26bde60e7130fb86965fbb4021663fbb75c96554
data/CHANGELOG.md CHANGED
@@ -1,108 +1,191 @@
1
- v0.6.0 (2012-02-22)
2
- ===================
1
+ 0.22.0 (2022-12-23)
2
+ ==========
3
+
4
+ ## Enhancements
5
+
6
+ * On Ruby 3.2+, you can now use the new Coverage library feature for `eval` - See https://github.com/simplecov-ruby/simplecov/pull/1037. Thanks [@mame](https://github.com/mame)!
7
+
8
+ ## Bugfixes
9
+ * Fix for making the test suite pass against the upcoming Ruby 3.2 - See https://github.com/simplecov-ruby/simplecov/pull/1035. Thanks [@mame](https://github.com/mame)
10
+
11
+ 0.21.2 (2021-01-09)
12
+ ==========
13
+
14
+ ## Bugfixes
15
+ * `maximum_coverage_drop` won't fail any more if `.last_run.json` is still in the old format. Thanks [@petertellgren](https://github.com/petertellgren)
16
+ * `maximum_coverage_drop` won't fail if an expectation is specified for a previous unrecorded criterion, it will just pass (there's nothing, so nothing to drop)
17
+ * fixed bug in `maximum_coverage_drop` calculation that could falsely report it had dropped for minimal differences
18
+
19
+ 0.21.1 (2021-01-04)
20
+ ==========
21
+
22
+ ## Bugfixes
23
+ * `minimum_coverage_by_file` works again as expected (errored out before 😱)
24
+
25
+ 0.21.0 (2021-01-03)
26
+ ==========
27
+
28
+ 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.
29
+
30
+ ## Enhancements
31
+ * 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)
32
+ * 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)
33
+ * Can set primary coverage to something other than line by setting `primary_coverage :branch` in SimpleCov Configuration. Thanks to [@jemmaissroff](https://github.com/jemmaissroff)
34
+
35
+ ## Misc
36
+ * 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
37
+ * 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).
38
+
39
+ 0.20.0 (2020-11-29)
40
+ ==========
41
+
42
+ The "JSON formatter" release. Starting now a JSON formatter is included by default in the release. This is mostly done for Code Climate reasons, you can find more details [in this issue](https://github.com/codeclimate/test-reporter/issues/413).
43
+ Shipping with so much by default is sub-optimal, we know. It's the long term plan to also provide `simplecov-core` without the HTML or JSON formatters for those who don't need them/for other formatters to rely on.
44
+
45
+ ## Enhancements
46
+ * `simplecov_json_formatter` included by default ([docs](https://github.com/simplecov-ruby/simplecov#json-formatter)), this should enable the Code Climate test reporter to work again once it's updated
47
+ * invalidate internal cache after switching `SimpleCov.root`, should help with some bugs
48
+
49
+ 0.19.1 (2020-10-25)
50
+ ==========
51
+
52
+ ## Bugfixes
53
+
54
+ * No more warnings triggered by `enable_for_subprocesses`. Thanks to [@mame](https://github.com/mame)
55
+ * Avoid trying to patch `Process.fork` when it isn't available. Thanks to [@MSP-Greg](https://github.com/MSP-Greg)
56
+
57
+ 0.19.0 (2020-08-16)
58
+ ==========
59
+
60
+ ## Breaking Changes
61
+ * Dropped support for Ruby 2.4, it reached EOL
62
+
63
+ ## Enhancements
64
+ * observe forked processes (enable with SimpleCov.enable_for_subprocesses). See [#881](https://github.com/simplecov-ruby/simplecov/pull/881), thanks to [@robotdana](https://github.com/robotdana)
65
+ * SimpleCov distinguishes better that it stopped processing because of a previous error vs. SimpleCov is the originator of said error due to coverage requirements.
3
66
 
4
- * [FEATURE] Auto-magic `rake simplecov` task for rails
5
- (see https://github.com/colszowka/simplecov/pull/83, thanks @sunaku)
6
- * [BUGFIX] Treat source files as UTF-8 to avoid encoding errors
7
- (see https://github.com/colszowka/simplecov/pull/103, thanks @joeyates)
8
- * [BUGFIX] Store the invoking terminal command right after loading so they are safe from
9
- other libraries tampering with ARGV. Among other makes automatic Rails test suite splitting
10
- (Unit/Functional/Integration) work with recent rake versions again
11
- (see https://github.com/colszowka/simplecov/issues/110)
12
- * [FEATURE] If guessing command name from the terminal command fails, try guessing from defined constants
13
- (see https://github.com/colszowka/simplecov/commit/37afca54ef503c33d888e910f950b3b943cb9a6c)
14
- * Some refactorings and cleanups as usual. Please refer to the github compare view for a full
15
- list of changes: https://github.com/colszowka/simplecov/compare/v0.5.4...v0.6.0
16
-
17
- v0.5.4 (2011-10-12)
67
+ ## Bugfixes
68
+ * Changing the `SimpleCov.root` combined with the root filtering didn't work. Now they do! Thanks to [@deivid-rodriguez](https://github.com/deivid-rodriguez) and see [#894](https://github.com/simplecov-ruby/simplecov/pull/894)
69
+ * in parallel test execution it could happen that the last coverage result was written to disk when it didn't complete yet, changed to only write it once it's the final result
70
+ * if you run parallel tests only the final process will report violations of the configured test coverage, not all previous processes
71
+ * changed the parallel_tests merging mechanisms to do the waiting always in the last process, should reduce race conditions
72
+
73
+ ## Noteworthy
74
+ * The repo has moved to https://github.com/simplecov-ruby/simplecov - everything stays the same, redirects should work but you might wanna update anyhow
75
+ * The primary development branch is now `main`, not `master` anymore. If you get simplecov directly from github change your reference. For a while `master` will still be occasionally updated but that's no long term solion.
76
+
77
+ 0.18.5 (2020-02-25)
18
78
  ===================
19
79
 
20
- * Do not give exit code 0 when there are exceptions prior to tests
21
- (see https://github.com/colszowka/simplecov/issues/41, thanks @nbogie)
22
- * The API for building custom filter classes is now more obvious, using #matches? instead of #passes? too.
23
- (see https://github.com/colszowka/simplecov/issues/85, thanks @robinroestenburg)
24
- * Mailers are now part of the Rails adapter as their own group (see
25
- https://github.com/colszowka/simplecov/issues/79, thanks @geetarista)
26
- * Removed fix for JRuby 1.6 RC1 float bug because it's been fixed
27
- (see https://github.com/colszowka/simplecov/issues/86)
28
- * Readme formatted in Markdown :)
29
-
30
- v0.5.3 (2011-09-13)
80
+ Can you guess? Another bugfix release!
81
+
82
+ ## Bugfixes
83
+ * minitest won't crash if SimpleCov isn't loaded - aka don't execute SimpleCov code in the minitest plugin if SimpleCov isn't loaded. Thanks to [@edariedl](https://github.com/edariedl) for the report of the peculiar problem in [#877](https://github.com/simplecov-ruby/simplecov/issues/877).
84
+
85
+ 0.18.4 (2020-02-24)
31
86
  ===================
32
87
 
33
- * Fix for encoding issues that came from the nocov processing mechanism
34
- (see https://github.com/colszowka/simplecov/issues/71)
35
- * :nocov: lines are now actually being reflected in the HTML report and are marked in yellow.
88
+ Another small bugfix release 🙈 Fixes SimpleCov running with rspec-rails, which was broken due to our fixed minitest integration.
89
+
90
+ ## Bugfixes
91
+ * SimpleCov will run again correctly when used with rspec-rails. The excellent bug report [#873](https://github.com/simplecov-ruby/simplecov/issues/873) by [@odlp](https://github.com/odlp) perfectly details what went wrong. Thanks to [@adam12](https://github.com/adam12) for the fix [#874](https://github.com/simplecov-ruby/simplecov/pull/874).
92
+
93
+
94
+ 0.18.3 (2020-02-23)
95
+ ===========
96
+
97
+ Small bugfix release. It's especially recommended to upgrade simplecov-html as well because of bugs in the 0.12.0 release.
98
+
99
+ ## Bugfixes
100
+ * Fix a regression related to file encodings as special characters were missing. Furthermore we now respect the magic `# encoding: ...` comment and read files in the right encoding. Thanks ([@Tietew](https://github.com/Tietew)) - see [#866](https://github.com/simplecov-ruby/simplecov/pull/866)
101
+ * Use `Minitest.after_run` hook to trigger post-run hooks if `Minitest` is present. See [#756](https://github.com/simplecov-ruby/simplecov/pull/756) and [#855](https://github.com/simplecov-ruby/simplecov/pull/855) thanks ([@adam12](https://github.com/adam12))
102
+
103
+ 0.18.2 (2020-02-12)
104
+ ===================
36
105
 
37
- * The Favicon in the HTML report is now determined by the overall coverage and will have the color
38
- that the coverage percentage gets as a css class to immediately indicate coverage status on first sight.
106
+ Small release just to allow you to use the new simplecov-html.
39
107
 
40
- * Introduced SimpleCov::SourceFile::Line#status method that returns the coverage status
41
- as a string for this line - made SimpleCov::HTML use that.
42
- * Refactored nocov processing and made it configurable using SimpleCov.ncov_token (or it's
43
- alias SimpleCov.skip_token)
108
+ ## Enhancements
109
+ * Relax simplecov-html requirement so that you're able to use [0.12.0](https://github.com/simplecov-ruby/simplecov-html/blob/main/CHANGELOG.md#0120-2020-02-12)
44
110
 
45
- v0.5.2 (2011-09-12)
111
+ 0.18.1 (2020-01-31)
46
112
  ===================
47
113
 
48
- * Another fix for a bug in JSON processing introduced with MultiJSON in 0.5.1
49
- (see https://github.com/colszowka/simplecov/pull/75, thanks @sferik)
114
+ Small Bugfix release.
115
+
116
+ ## Bugfixes
117
+ * Just putting `# :nocov:` on top of a file or having an uneven number of them in general works again and acts as if ignoring until the end of the file. See [#846](https://github.com/simplecov-ruby/simplecov/issues/846) and thanks [@DannyBen](https://github.com/DannyBen) for the report.
50
118
 
51
- v0.5.1 (2011-09-12)
119
+ 0.18.0 (2020-01-28)
52
120
  ===================
53
- **Note: Yanked 2011-09-12 because the MultiJSON-patch had a crucial bug**
54
121
 
55
- * Fix for invalid gemspec dependency string (see https://github.com/colszowka/simplecov/pull/70,
56
- http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yacc.html, thanks @jspradlin)
122
+ Huge release! Highlights are support for branch coverage (Ruby 2.5+) and dropping support for EOL'ed Ruby versions (< 2.4).
123
+ Please also read the other beta patch notes.
124
+
125
+ You can run with branch coverage by putting `enable_coverage :branch` into your SimpleCov configuration (like the `SimpleCov.start do .. end` block)
126
+
127
+ ## Enhancements
128
+ * You can now define the minimum expected coverage by criterion like `minimum_coverage line: 90, branch: 80`
129
+ * Memoized some internal data structures that didn't change to reduce SimpleCov overhead
130
+ * Both `FileList` and `SourceFile` now have a `coverage` method that returns a hash that points from a coverage criterion to a `CoverageStatistics` object for uniform access to overall coverage statistics for both line and branch coverage
131
+
132
+ ## Bugfixes
133
+ * we were losing precision by rounding the covered strength early, that has been removed. **For Formatters** this also means that you may need to round it yourself now.
134
+ * Removed an inconsistency in how we treat skipped vs. irrelevant lines (see [#565](https://github.com/simplecov-ruby/simplecov/issues/565)) - SimpleCov's definition of 100% is now "You covered everything that you could" so if coverage is 0/0 that's counted as a 100% no matter if the lines were irrelevant or ignored/skipped
57
135
 
58
- * Added JSON in the form of the multi_json gem as dependency for those cases when built-in JSON
59
- is unavailable (see https://github.com/colszowka/simplecov/issues/72
60
- and https://github.com/colszowka/simplecov/pull/74, thanks @sferik)
136
+ ## Noteworthy
137
+ * `FileList` stopped inheriting from Array, it includes Enumerable so if you didn't use Array specific methods on it in formatters you should be fine
138
+ * We needed to change an internal file format, which we use for merging across processes, to accommodate branch coverage. Sadly CodeClimate chose to use this file to report test coverage. Until a resolution is found the code climate test reporter won't work with SimpleCov for 0.18+, see [this issue on the test reporter](https://github.com/codeclimate/test-reporter/issues/413).
61
139
 
62
- v0.5.0 (2011-09-09)
140
+ 0.18.0.beta3 (2020-01-20)
141
+ ========================
142
+
143
+ ## Enhancements
144
+ * Instead of ignoring old `.resultset.json`s that are inside the merge timeout, adapt and respect them
145
+
146
+ ## Bugfixes
147
+ * Remove the constant warning printing if you still have a `.resultset.json` in pre 0.18 layout that is within your merge timeout
148
+
149
+ 0.18.0.beta2 (2020-01-19)
63
150
  ===================
64
- **Note: Yanked 2011-09-09 because of trouble with the gemspec.**
65
151
 
66
- * JSON is now used instead of YAML for resultset caching (used for merging). Should resolve
67
- a lot of problems people used to have because of YAML parser errors.
152
+ ## Enhancements
153
+ * only turn on the requested coverage criteria (when activating branch coverage before SimpleCov would also instruct Ruby to take Method coverage)
154
+ * Change how branch coverage is displayed, now it's `branch_type: hit_count` which should be more self explanatory. See [#830](https://github.com/simplecov-ruby/simplecov/pull/830) for an example and feel free to give feedback!
155
+ * Allow early running exit tasks and avoid the `at_exit` hook through the `SimpleCov.run_exit_tasks!` method. (thanks [@macumber](https://github.com/macumber))
156
+ * Allow manual collation of result sets through the `SimpleCov.collate` entrypoint. See the README for more details (thanks [@ticky](https://github.com/ticky))
157
+ * Within `case`, even if there is no `else` branch declared show missing coverage for it (aka no branch of it). See [#825](https://github.com/simplecov-ruby/simplecov/pull/825)
158
+ * Stop symbolizing all keys when loading cache (should lead to be faster and consume less memory)
159
+ * Cache whether we can use/are using branch coverage (should be slightly faster)
68
160
 
69
- * There's a new adapter 'test_frameworks'. Use it outside of Rails to remove `test/`,
70
- `spec/`, `features/` and `autotest/` dirs from your coverage reports, either directly
71
- with `SimpleCov.start 'test_frameworks'` or with `SimpleCov.load_adapter 'test_frameworks'`
161
+ ## Bugfixes
162
+ * Fix a crash that happened when an old version of our internal cache file `.resultset.json` was still present
163
+
164
+ 0.18.0.beta1 (2020-01-05)
165
+ ===================
72
166
 
73
- * SimpleCov configuration can now be placed centrally in a text file `.simplecov`, which will
74
- be automatically read on `require 'simplecov'`. This makes using custom configuration like
75
- groups and filters across your test suites much easier as you only have to specify your config
76
- once. Just put the whole `SimpleCov.start (...)` code into `APP_ROOT/.simplecov`
167
+ This is a huge release highlighted by changing our support for ruby versions to 2.4+ (so things that aren't EOL'ed) and finally adding branch coverage support!
77
168
 
78
- * Lines can now be skipped by using the :nocov: flag in comments that wrap the code that should be
79
- skipped, like in this example (thanks @phillipkoebbe)
169
+ This release is still beta because we'd love for you to test out branch coverage and get your feedback before doing a full release.
80
170
 
81
- <pre>
82
- #:nocov:
83
- def skipped
84
- @foo * 2
85
- end
86
- #:nocov:
87
- </pre>
171
+ On a personal note from [@PragTob](https://github.com/PragTob/) thanks to [ruby together](https://rubytogether.org/) for sponsoring this work on SimpleCov making it possible to deliver this and subsequent releases.
88
172
 
89
- * Moved file set coverage analytics from simplecov-html to SimpleCov::FileList, a new subclass
90
- of Array that is always returned for SourceFile lists (i.e. in groups) and can now be used
91
- in all formatters without the need to roll your own.
173
+ ## Breaking
174
+ * Dropped support for all EOL'ed rubies meaning we only support 2.4+. Simplecov can no longer be installed on older rubies, but older simplecov releases should still work. (thanks [@deivid-rodriguez](https://github.com/deivid-rodriguez))
175
+ * Dropped the `rake simplecov` task that "magically" integreated with rails. It was always undocumented, caused some issues and [had some issues](https://github.com/simplecov-ruby/simplecov/issues/689#issuecomment-561572327). Use the integration as described in the README please :)
92
176
 
93
- * The exceptions you used to get after removing some code and re-running your tests because SimpleCov
94
- couldn't find the cached source lines should be resolved (thanks @goneflyin)
177
+ ## Enhancements
95
178
 
96
- * Coverage strength metric: Average hits/line per source file and result group (thanks @trans)
179
+ * Branch coverage is here! Please try it out and test it! You can activate it with `enable_coverage :branch`. See the README for more details. This is thanks to a bunch of people most notably [@som4ik](https://github.com/som4ik), [@tycooon](https://github.com/tycooon), [@stepozer](https://github.com/stepozer), [@klyonrad](https://github.com/klyonrad) and your humble maintainers also contributed ;)
180
+ * If the minimum coverage is set to be greater than 100, a warning will be shown. See [#737](https://github.com/simplecov-ruby/simplecov/pull/737) (thanks [@belfazt](https://github.com/belfazt))
181
+ * Add a configuration option to disable the printing of non-successful exit statuses. See [#747](https://github.com/simplecov-ruby/simplecov/pull/746) (thanks [@JacobEvelyn](https://github.com/JacobEvelyn))
182
+ * Calculating 100% coverage is now stricter, so 100% means 100%. See [#680](https://github.com/simplecov-ruby/simplecov/pull/680) thanks [@gleseur](https://github.com/gleseur)
97
183
 
98
- * Finally, SimpleCov has an extensive Cucumber test suite
184
+ ## Bugfixes
99
185
 
100
- * Full compatibility with Ruby 1.9.3.preview1
186
+ * 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))
101
187
 
102
- HTML Formatter:
103
- ---------------
188
+ Older Changelogs
189
+ ================
104
190
 
105
- * The display of source files has been improved a lot. Weird scrolling trouble, out-of-scope line hit counts
106
- and such should be a thing of the past. Also, it is prettier now.
107
- * Source files are now syntax highlighted
108
- * File paths no longer have that annoying './' in front of them
191
+ Looking for older changelogs? Please check the [old Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.old.md)
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2011 Christoph Olszowka
1
+ Copyright (c) 2010-2017 Christoph Olszowka
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the