parallel_coverage 0.1.3 → 0.2.0
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/README.md +12 -5
- data/lib/parallel_coverage/version.rb +1 -1
- data/lib/parallel_coverage.rb +4 -3
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb1cda9d70aec5203768084438cf5370f2be23e6dbb770cd986576568dd5e85f
|
4
|
+
data.tar.gz: c8fc232142944661647ca5d1d7c7b9a1e685afffec4b67f2ed83f1a89a187f69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e97521a09121953be6b0b1c41aa341bff1d1e1a04ea46687df71d4b2d27c1fc5c2e72189023ea57c4c02a7abcd0a2bfac8cfdeddb385ecebaf62e8346ad56f4
|
7
|
+
data.tar.gz: 6027f57afa4c0010a9f0074d0420e5dacd09d8f369f2c9540085af423c3f89c8988ce1999f62e806aba0b55f1b785c3331f56f2eefcdee7995c099b0c6450e0e
|
data/README.md
CHANGED
@@ -19,14 +19,18 @@ COVERAGE=true bin/rails test:system test
|
|
19
19
|
|
20
20
|
The default SimpleCov config passed to the `SimpleCov.start 'rails'` call is the following:
|
21
21
|
```ruby
|
22
|
-
track_files '
|
22
|
+
track_files 'app/**/*.rb'
|
23
|
+
|
23
24
|
add_filter '/bin/'
|
24
25
|
add_filter '/config/'
|
25
26
|
add_filter '/db/'
|
26
27
|
add_filter '/lib/'
|
27
28
|
add_filter '/test/'
|
29
|
+
add_filter 'vendor'
|
30
|
+
add_filter 'node_modules'
|
28
31
|
add_filter '/Rakefile'
|
29
|
-
|
32
|
+
|
33
|
+
add_group 'Services', 'app/services'
|
30
34
|
```
|
31
35
|
We assume that admin controllers are not critical enought to be tracked in the coverage, but if you need to, you can override those settings by adding a `config/initializers/coverage.rb` with:
|
32
36
|
```ruby
|
@@ -38,10 +42,10 @@ end
|
|
38
42
|
```
|
39
43
|
Keep in mind that by doing this you will totally disable the default config, so you'll have to put it back in your `config/initializers/coverage.rb` if you want to extend the config.
|
40
44
|
|
41
|
-
## Release
|
42
|
-
Before all, configure your credentials for
|
45
|
+
## Release
|
46
|
+
Before all, configure your credentials for RubyGems :
|
43
47
|
|
44
|
-
1. Login to RubyGems
|
48
|
+
1. Login to RubyGems
|
45
49
|
2. Create a token which have rights to push gems (https://rubygems.org/profile/api_keys)
|
46
50
|
3. Add it to your config:
|
47
51
|
```
|
@@ -58,3 +62,6 @@ Else, to publish a new version of this gem, you'll need to build it with
|
|
58
62
|
```
|
59
63
|
gem push parallel_coverage-X.X.X.gem
|
60
64
|
```
|
65
|
+
|
66
|
+
## License
|
67
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). Copyright 2021 Codeur SARL.
|
data/lib/parallel_coverage.rb
CHANGED
@@ -28,7 +28,8 @@ class ParallelCoverage
|
|
28
28
|
end
|
29
29
|
|
30
30
|
ParallelCoverage.simple_cov_config = proc do
|
31
|
-
track_files '
|
31
|
+
track_files 'app/**/*.rb'
|
32
|
+
|
32
33
|
add_filter '/bin/'
|
33
34
|
add_filter '/config/'
|
34
35
|
add_filter '/db/'
|
@@ -37,6 +38,6 @@ ParallelCoverage.simple_cov_config = proc do
|
|
37
38
|
add_filter 'vendor'
|
38
39
|
add_filter 'node_modules'
|
39
40
|
add_filter '/Rakefile'
|
40
|
-
|
41
|
-
|
41
|
+
|
42
|
+
add_group 'Services', 'app/services'
|
42
43
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dev-team Codeur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '6.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '8'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '6.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '8'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: simplecov
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
91
|
- !ruby/object:Gem::Version
|
86
92
|
version: '0'
|
87
93
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
94
|
+
rubygems_version: 3.1.4
|
89
95
|
signing_key:
|
90
96
|
specification_version: 4
|
91
97
|
summary: Setup code coverage for parallelized rails tests
|