ae_test_coverage 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ae_test_coverage/collectors/webpacker/helpers.rb +20 -1
- data/lib/ae_test_coverage/version.rb +1 -1
- metadata +4 -88
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfce1bfaead913e22fa5d6a1561538b9481327e7f2c1f2e3591887957682a7a0
|
4
|
+
data.tar.gz: 441e0cde594a4ac7480f6220ce633e93e53ed6fece4960080c193da22497b2de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5639f983c7e9ad81d0aceae4062d0c564ea781882bac27ffc652e0d8caf89ba833410a7c680657d1da87205cdd4386a50870cbe8b5b8f3ed212a0c867372131
|
7
|
+
data.tar.gz: 7e2f80252c49fecbf0ca03b5bf7fdea49c04846dd162b3b5af4c31751c7f3cb58dee7f10378958217f0dd064ade3c3e40ffeabfb91a6214e0fec0172bd13fa1e
|
@@ -4,7 +4,27 @@ module AeTestCoverage
|
|
4
4
|
module Collectors
|
5
5
|
module Webpacker
|
6
6
|
module Helpers
|
7
|
+
def javascript_pack_tag(*names, **options)
|
8
|
+
add_to_coverage(names)
|
9
|
+
super
|
10
|
+
end
|
11
|
+
|
7
12
|
def javascript_packs_with_chunks_tag(*names, **options)
|
13
|
+
add_to_coverage(names)
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
17
|
+
def stylesheet_pack_tag(*names, **options)
|
18
|
+
add_to_coverage(names)
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
22
|
+
def stylesheet_packs_with_chunks_tag(*names, **options)
|
23
|
+
add_to_coverage(names)
|
24
|
+
super
|
25
|
+
end
|
26
|
+
|
27
|
+
def add_to_coverage(names)
|
8
28
|
raise(StandardError, 'AeTestCoverage.config.webpacker_app_locations must be set to collect webpacker app coverage') if AeTestCoverage.config.webpacker_app_locations.blank?
|
9
29
|
|
10
30
|
globs = names.flat_map do |name|
|
@@ -17,7 +37,6 @@ module AeTestCoverage
|
|
17
37
|
]
|
18
38
|
end
|
19
39
|
AeTestCoverage.coverage_collectors[WebpackerAppCollector].add_covered_globs(*globs)
|
20
|
-
super
|
21
40
|
end
|
22
41
|
|
23
42
|
def javascript_app_home(name)
|
metadata
CHANGED
@@ -1,99 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ae_test_coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Appfolio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: railties
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "<"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '7'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "<"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '7'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: activerecord
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "<"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '7'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "<"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '7'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.15'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.15'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '10.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '10.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: simplecov
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
97
13
|
description: Tools for collecting code coverage from tests
|
98
14
|
email:
|
99
15
|
executables: []
|
@@ -136,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
52
|
- !ruby/object:Gem::Version
|
137
53
|
version: '0'
|
138
54
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
55
|
+
rubygems_version: 3.0.6
|
140
56
|
signing_key:
|
141
57
|
specification_version: 4
|
142
58
|
summary: Tools for collecting code coverage from tests
|