Minor tweak to generated rails_helper.rb to use Rails.root.join.
(@masato-bkn, Ryo Nakamura, #2640, #2678)
Add RSpec::Rails::Configuration.fixture_paths configuration to support
the matching change to ActiveRecord::TestFixtures, previous singular
form is deprecated and will be removed in Rails 7.2. (Juan Gueçaimburu, #2673)
Add send_email matcher to match emails rather than specific jobs.
(Andrei Kaleshka, #2670)
When using render in view specs, :locals will now be merged into the
default implicit template, allowing render locals: {...} style calls.
(Jon Rowe, #2686)
Add support for Rails.config.action_mailer.preview_paths on Rails 7.1/
(Jon Rowe, #2706)
maximum_coverage_drop won't fail any more if .last_run.json is still in the old format. Thanks @petertellgren
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)
fixed bug in maximum_coverage_drop calculation that could falsely report it had dropped for minimal differences
v0.21.1
Bugfixes
minimum_coverage_by_file works again as expected (errored out before 😱)
v0.21.0
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.
v0.20.0
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
v0.19.1
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
v0.19.0
Breaking Changes
Dropped support for Ruby 2.4, it reached EOL
Enhancements
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
maximum_coverage_drop won't fail any more if .last_run.json is still in the old format. Thanks @petertellgren
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)
fixed bug in maximum_coverage_drop calculation that could falsely report it had dropped for minimal differences
0.21.1 (2021-01-04)
Bugfixes
minimum_coverage_by_file works again as expected (errored out before 😱)
0.21.0 (2021-01-03)
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.
0.20.0 (2020-11-29)
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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on rspec, rspec-rails, sass-rails and simplecov to permit the latest version. Updates
rspec
from 3.6.0 to 3.13.0Commits
317fc0b
v3.13.0cfb135a
v3.12.0f4393df
Version 3.11.0694150e
Fix typo900a29c
Bold rather than italic texta6fb2b4
Move rspec to rspec-metagem9fb905e
Merge pull request #64 from rspec/update-common-plaintext-files-2020-12-27-fo...293560e
Updated common plaintext files (from rspec-dev)maindcbe14a
Update code of conduct from rspec-core0e3de5c
Update FUNDING.ymlUpdates
rspec-rails
from 3.6.1 to 6.1.2Changelog
Sourced from rspec-rails's changelog.
... (truncated)
Commits
916ea26
v6.1.20cd4b5a
Merge pull request #2744 from budu/clean-generator-spec-generator0ad2229
Tidy up changelog85be490
Changelog for #2735f8e14c2
Fix generator for mailer (#2735)e5834e6
Merge pull request #2736 from kianmeng/fix-typos7da16da
Merge pull request #2731 from rspec/update-rspec-version129bcc5
Merge pull request #2727 from threeplanetssoftware/update-documentation-for-c...38aef20
Merge pull request #2733 from eugeneius/setup_fixtures453e948
Merge pull request #2732 from eugeneius/action_dispatch_assertions_routingUpdates
sass-rails
from 5.0.7 to 6.0.0Release notes
Sourced from sass-rails's releases.
Commits
a77240c
Prepare to 6.0.08dbe4dc
Bump version to 6.0.0.beta3830a8ec
Bump minimum version of sassc-railsff54c20
Fix open-ended dependencyebe9ef7
Bump version to v6.0.0.beta2409d871
Merge pull request #424 from rails/sassc-railsd809900
Recomend to use SassC::Rails::Importer to users requiring sass/rails/importer706526d
Make sass-rails an wrapper for sassc-rails to allow a smooth upgrade pathac38f1e
Merge pull request #423 from gregmolnar/masterd61b999
remove gemnasium badge from readmeUpdates
simplecov
from 0.14.1 to 0.22.0Release notes
Sourced from simplecov's releases.
... (truncated)
Changelog
Sourced from simplecov's changelog.
... (truncated)
Commits
0e35b25
Add missing closing parenthesis)8117802
Merge pull request #1041 from simplecov-ruby/co-prepare-0.22.026407f1
Hmm, ok maybe I actually have to bump the version here as well8fdc6b9
Run bundle lock in each test project directory7f44498
Go back to prior bundler and json formatter versions, to make CI happy761956b
Bump to latest bundler version for development8f3be99
Bump version, update changelog43f0e39
Merge pull request #1034 from nhtruong/main6bc65b0
Merge pull request #1037 from mame/coverage-for-eval56ca3f5
Show a warning for the case where coverage for eval is unavailableDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show