This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.
After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.
Let us know if you have any questions. Thanks so much for giving Depfu a try!
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
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.
Enhancements
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)
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
Can set primary coverage to something other than line by setting primary_coverage :branch in SimpleCov Configuration. Thanks to @jemmaissroff
Misc
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
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.
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.
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.
Enhancements
simplecov_json_formatter included by default (docs), this should enable the Code Climate test reporter to work again once it's updated
invalidate internal cache after switching SimpleCov.root, should help with some bugs
0.19.1 (from changelog)
Bugfixes
No more warnings triggered by enable_for_subprocesses. Thanks to @mame
Avoid trying to patch Process.fork when it isn't available. Thanks to @MSP-Greg
observe forked processes (enable with SimpleCov.enable_for_subprocesses). See #881, thanks to @robotdana
SimpleCov distinguishes better that it stopped processing because of a previous error vs. SimpleCov is the originator of said error due to coverage requirements.
Bugfixes
Changing the SimpleCov.root combined with the root filtering didn't work. Now they do! Thanks to @deivid-rodriguez and see #894
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
if you run parallel tests only the final process will report violations of the configured test coverage, not all previous processes
changed the parallel_tests merging mechanisms to do the waiting always in the last process, should reduce race conditions
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.
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 for the report of the peculiar problem in #877.
Another small bugfix release 🙈 Fixes SimpleCov running with rspec-rails, which was broken due to our fixed minitest integration.
Bugfixes
SimpleCov will run again correctly when used with rspec-rails. The excellent bug report #873 by @odlp perfectly details what went wrong. Thanks to @adam12 for the fix #874.
Small bugfix release. It's especially recommended to upgrade simplecov-html as well because of bugs in the 0.12.0 release.
Bugfixes
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) - see #866
Use Minitest.after_run hook to trigger post-run hooks if Minitest is present. See #756 and #855 thanks (@adam12)
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 and thanks @DannyBen for the report.
Huge release! Highlights are support for branch coverage (Ruby 2.5+) and dropping support for EOL'ed Ruby versions (< 2.4).
Please also read the other beta patch notes.
Enhancements
You can now define the minimum expected coverage by criterion like minimum_coverage line: 90, branch: 80
Memoized some internal data structures that didn't change to reduce SimpleCov overhead
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
Bugfixes
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.
Removed an inconsistency in how we treat skipped vs. irrelevant lines (see #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
Noteworthy
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
0.17.1 (from changelog)
Bugfix release for problems with ParallelTests.
Bugfixes
Avoid hanging with parallel_tests. See #746 (thanks @annaswims)
This release is basically a collection of long standing PRs finally merged.
Yes it looks different, no it's not a redesign - just a side effect of lots of dependency updates to improve CSP compatibility.
Enhancements
The HTML should now be servable with CSP settings of default-src 'none'; script-src 'self'; img-src 'self'; style-src 'self';
File list is horizontally scrollable if the space doesn't suffice
numbers are now right aligned and displayed with the same number of decimals for easier comparison and reading.
Bugfixes
Make sorting icons appear again
close link tag which could cause problems when parsing as xhtml/xml
make sure encoding errors won't crash the formatter
When viewing a short source file while you have a big file list you will no longer be able to scroll on after the source file has ended
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu close
Closes this PR and deletes the branch
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Welcome to Depfu 👋
This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.
After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.
Let us know if you have any questions. Thanks so much for giving Depfu a try!
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ simplecov (0.17.0 → 0.21.1) · Repo · Changelog
Release Notes
0.21.1
0.21.0
0.20.0
0.19.1 (from changelog)
0.19.0
0.18.5
0.18.4
0.18.3
0.18.2
0.18.1
0.18.0
0.17.1 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗️ docile (indirect, 1.3.2 → 1.3.4) · Repo · Changelog
Release Notes
1.3.4 (from changelog)
1.3.3 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 20 commits:
Prepare for release of v1.3.4 (#55)
Update HISTORY.md for 1.3.4 (#54)
Fix delegation on Ruby 2.7
Restore testing 1.8.7 and ree in .travis.yml (#53)
Update .travis.yml to build only master branch
Prepare for release of v1.3.3
Update HISTORY.md for 1.3.3 (#49)
Update .travis.yml to remove os and dist
Bump copyright from 2020 to 2021 (#48)
Update .travis.yml for new keys
Allow travis failures of 1.8.7 and REE for now (#47)
Update truffleruby and jruby versions in travis.yml (#46)
fix warning related to keywoard argument (#45)
Remove Rubinius from Travis CI, it doesn't work
Fix rubinius target to rbx-3 in CI, add truffle versions
Exclude CodeCov on Ruby < 2.3.0
Bump copyright from 2019 to 2020
Update .travis.yml ti add Truffleruby head to CI
Add missing current ruby versions to .travis.yml (#40)
Filter Docile's source files from backtrace (#36)
↗️ simplecov-html (indirect, 0.10.2 → 0.12.3) · Repo · Changelog
Release Notes
0.12.3
0.12.2
0.12.1
0.12.0
0.11.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
🆕 simplecov_json_formatter (added, 0.1.2)
🗑️ json (removed)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands