parallel_coverage 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -5
- data/lib/parallel_coverage.rb +3 -0
- data/lib/parallel_coverage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc5d1cd0fa84d14a150c10599dc01ab5756b7da9ed882a7d2605e244bf40aaf4
|
4
|
+
data.tar.gz: 8a5806d245400211adc8db05357d3b4f17d696ae38a4d786a1c8c9415fc67eeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b33c3dd152355c254b0d6065bc98b0944ea71b9e5fe5fb211cfcc54afe98cc905343bda7a8f5e70da291e44ec7f107a936784a6ed34e1ecbf1480b8088c56f
|
7
|
+
data.tar.gz: e142a278a4e47029f0337f18333079703f40e3d484ecfa730e020a48dc95a5603ac59e1fa52daa04413e86a4b260cef46521ed2a9bc5c81816f01e9df91e3e80
|
data/README.md
CHANGED
@@ -19,14 +19,19 @@ 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
|
-
add_filter '/app/controllers/admin'
|
32
|
+
add_filter '/app/controllers/admin/'
|
33
|
+
|
34
|
+
add_group 'Services', 'app/services'
|
30
35
|
```
|
31
36
|
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
37
|
```ruby
|
@@ -38,10 +43,10 @@ end
|
|
38
43
|
```
|
39
44
|
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
45
|
|
41
|
-
## Release
|
42
|
-
Before all, configure your credentials for
|
46
|
+
## Release
|
47
|
+
Before all, configure your credentials for RubyGems :
|
43
48
|
|
44
|
-
1. Login to RubyGems
|
49
|
+
1. Login to RubyGems
|
45
50
|
2. Create a token which have rights to push gems (https://rubygems.org/profile/api_keys)
|
46
51
|
3. Add it to your config:
|
47
52
|
```
|
@@ -58,3 +63,6 @@ Else, to publish a new version of this gem, you'll need to build it with
|
|
58
63
|
```
|
59
64
|
gem push parallel_coverage-X.X.X.gem
|
60
65
|
```
|
66
|
+
|
67
|
+
## License
|
68
|
+
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
@@ -39,6 +39,9 @@ ParallelCoverage.simple_cov_config = proc do
|
|
39
39
|
add_filter 'node_modules'
|
40
40
|
add_filter '/Rakefile'
|
41
41
|
add_filter '/app/controllers/admin/'
|
42
|
+
add_filter '/app/presenters/admin/'
|
43
|
+
add_filter '/app/decorators/admin/'
|
44
|
+
add_filter '/app/helpers/admin/'
|
42
45
|
|
43
46
|
add_group 'Services', 'app/services'
|
44
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
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: 2021-
|
11
|
+
date: 2021-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
88
|
+
rubygems_version: 3.2.7
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Setup code coverage for parallelized rails tests
|