rails-quality-assurance 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/lib/rails_quality_assurance/simplecov/helper.rb +8 -3
- data/lib/rails_quality_assurance/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c48fd8ab4bfffb99f79aed4c20a235d68a8743572688e16a30e92fb70c3653b
|
|
4
|
+
data.tar.gz: 316329537a41a4259bbc2ed9f69767dceb4d491af9d5314fa9e1f2241ff79f73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db9440d4c8d0524b9e1dbaec2d7ab1e5c8f506e86c0aedbeee6d9e1f194589076cc97d3842687789fb50087fb723e30aa40138b5e5c7870dec7964b7b038addb
|
|
7
|
+
data.tar.gz: f667a8d871426ae41141ad849368f71a69b26512a18376cf5a17c92d93fab62fbfee6f3c83adcc416e8bf9f69be0008cd2af155d2c7e713c6c50b69ee665c3f2
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.2] - 2026-09-16
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Parallel workers no longer skip SimpleCov when their slice covers a single
|
|
13
|
+
file. `filtered_run?` treated any one-file run as a filtered single-spec run,
|
|
14
|
+
so a worker assigned an isolated phase (e.g. `--isolate --single spec/system/`)
|
|
15
|
+
started no coverage at all. With no worker claiming the final merge, sibling
|
|
16
|
+
workers wrote resultsets that nobody merged, and the parallel run silently
|
|
17
|
+
skipped the line/branch thresholds it was supposed to enforce. Parallel runs
|
|
18
|
+
now always collect coverage, and the first worker merges and enforces.
|
|
19
|
+
|
|
20
|
+
## [1.4.1] - 2026-09-15
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Replaced the deprecated `SimpleCov.add_filter` calls with `SimpleCov.skip`,
|
|
25
|
+
silencing the deprecation warning every consuming app saw during test runs.
|
|
26
|
+
`add_filter` was a thin alias for `skip`, so behavior is unchanged.
|
|
27
|
+
|
|
8
28
|
## [1.4.0] - 2026-09-15
|
|
9
29
|
|
|
10
30
|
### Added
|
|
@@ -26,6 +26,7 @@ module RailsQualityAssurance
|
|
|
26
26
|
|
|
27
27
|
def self.filtered_run?
|
|
28
28
|
return false unless defined?(RSpec)
|
|
29
|
+
return false if parallel_run?
|
|
29
30
|
|
|
30
31
|
rspec_config = RSpec.configuration
|
|
31
32
|
rspec_config.files_to_run.one? ||
|
|
@@ -33,6 +34,10 @@ module RailsQualityAssurance
|
|
|
33
34
|
(rspec_config.inclusion_filter.rules&.size&.> 0)
|
|
34
35
|
end
|
|
35
36
|
|
|
37
|
+
def self.parallel_run?
|
|
38
|
+
ENV.key?('TEST_ENV_NUMBER') || ENV.key?('PARALLEL_TEST_GROUPS') || ENV.key?('PARALLEL_PID_FILE')
|
|
39
|
+
end
|
|
40
|
+
|
|
36
41
|
def self.configure_lcov_formatter
|
|
37
42
|
SimpleCov::Formatter::LcovFormatter.config do |formatter|
|
|
38
43
|
formatter.report_with_single_file = true
|
|
@@ -48,9 +53,9 @@ module RailsQualityAssurance
|
|
|
48
53
|
|
|
49
54
|
command_name "rspec#{ENV.fetch('TEST_ENV_NUMBER', nil)}"
|
|
50
55
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
skip '/spec/'
|
|
57
|
+
skip '/config/'
|
|
58
|
+
skip '/vendor/'
|
|
54
59
|
|
|
55
60
|
finalize_merge true
|
|
56
61
|
|