simple_cov-formatter-terminal 1.7.0 → 1.8.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/.ruby-version +1 -1
- data/CHANGELOG.md +9 -0
- data/Gemfile +4 -3
- data/Gemfile.lock +145 -46
- data/README.md +26 -0
- data/lib/simple_cov/formatter/terminal/color_printing.rb +0 -2
- data/lib/simple_cov/formatter/terminal/result_printer.rb +2 -2
- data/lib/simple_cov/formatter/terminal/version.rb +1 -1
- data/lib/simple_cov/formatter/terminal.rb +12 -10
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 150831993c9b6bab0b5fe3f7ed4e389676213ed7cdfe6508151e27889df56cb0
|
4
|
+
data.tar.gz: b3dd029a4bd7f675f542446c126b13b6e0f80942aedf5d1773f97c8e49d64e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8cfbd730dc378587af157949bd5f2e172dc5ece2d05c1e55ece025248d6232540a079dead6d47dab5540017df5435804b8dae4b53a4ff6631e3df02ccfc9d8f
|
7
|
+
data.tar.gz: 48474a5097ae23ef6f329bd392ec0f5d0dc5736b3bb481ecc20070d92f58698e22acfbd39c74c0e287735871f41fe5d2a668fb62c0ac606ccdb0ea9bddfc8ced
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.4.2
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## v1.8.0 (2025-03-12)
|
2
|
+
- Support disabling via `DISABLE_SIMPLECOV_TERMINAL` environment variable.
|
3
|
+
|
4
|
+
### Docs
|
5
|
+
- Add table of contents to README.
|
6
|
+
|
7
|
+
## v1.7.1 (2025-02-17)
|
8
|
+
- Respect `SIMPLECOV_TARGET_FILE` env var for otherwise unmappable spec files.
|
9
|
+
|
1
10
|
## v1.7.0 (2024-11-08)
|
2
11
|
- Remove upper bounds on versions for all dependencies
|
3
12
|
|
data/Gemfile
CHANGED
@@ -11,8 +11,9 @@ gemspec
|
|
11
11
|
|
12
12
|
group :development, :test do
|
13
13
|
gem 'bundler', require: false
|
14
|
-
gem 'pry'
|
15
|
-
|
14
|
+
gem 'pry'
|
15
|
+
# Go back to upstream if/when https://github.com/deivid-rodriguez/pry-byebug/pull/ 428 is merged.
|
16
|
+
gem 'pry-byebug', github: 'davidrunger/pry-byebug'
|
16
17
|
gem 'rubocop', require: false
|
17
18
|
gem 'rubocop-performance', require: false
|
18
19
|
gem 'rubocop-rspec', require: false
|
@@ -20,7 +21,7 @@ group :development, :test do
|
|
20
21
|
end
|
21
22
|
|
22
23
|
group :test do
|
23
|
-
gem 'climate_control'
|
24
|
+
gem 'climate_control'
|
24
25
|
gem 'rspec', require: false
|
25
26
|
gem 'simplecov', require: false
|
26
27
|
gem 'simplecov-cobertura', require: false
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/davidrunger/pry-byebug
|
3
|
+
revision: 4ef3e66233451fcbeff3a5f7a616380214379272
|
4
|
+
specs:
|
5
|
+
pry-byebug (3.10.1)
|
6
|
+
pry (>= 0.13)
|
7
|
+
runger_byebug (>= 11.0)
|
8
|
+
|
1
9
|
PATH
|
2
10
|
remote: .
|
3
11
|
specs:
|
4
|
-
simple_cov-formatter-terminal (1.
|
12
|
+
simple_cov-formatter-terminal (1.8.0)
|
5
13
|
activesupport (>= 7.0.4)
|
6
14
|
memo_wise (>= 1.7.0)
|
7
15
|
rouge (>= 4.0.0)
|
@@ -12,7 +20,7 @@ PATH
|
|
12
20
|
GEM
|
13
21
|
remote: https://rubygems.org/
|
14
22
|
specs:
|
15
|
-
activesupport (
|
23
|
+
activesupport (8.0.2)
|
16
24
|
base64
|
17
25
|
benchmark (>= 0.3)
|
18
26
|
bigdecimal
|
@@ -24,48 +32,62 @@ GEM
|
|
24
32
|
minitest (>= 5.1)
|
25
33
|
securerandom (>= 0.3)
|
26
34
|
tzinfo (~> 2.0, >= 2.0.5)
|
35
|
+
uri (>= 0.13.1)
|
27
36
|
ast (2.4.2)
|
28
37
|
base64 (0.2.0)
|
29
38
|
benchmark (0.4.0)
|
30
|
-
bigdecimal (3.1.
|
31
|
-
byebug (11.1.3)
|
39
|
+
bigdecimal (3.1.9)
|
32
40
|
climate_control (1.2.0)
|
33
41
|
coderay (1.1.3)
|
34
|
-
concurrent-ruby (1.3.
|
35
|
-
connection_pool (2.
|
36
|
-
|
42
|
+
concurrent-ruby (1.3.5)
|
43
|
+
connection_pool (2.5.0)
|
44
|
+
date (3.4.1)
|
45
|
+
diff-lcs (1.6.0)
|
37
46
|
docile (1.4.1)
|
38
47
|
drb (2.2.1)
|
39
|
-
i18n (1.14.
|
48
|
+
i18n (1.14.7)
|
40
49
|
concurrent-ruby (~> 1.0)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
50
|
+
io-console (0.8.0)
|
51
|
+
irb (1.15.1)
|
52
|
+
pp (>= 0.6.0)
|
53
|
+
rdoc (>= 4.0.0)
|
54
|
+
reline (>= 0.4.2)
|
55
|
+
json (2.10.2)
|
56
|
+
language_server-protocol (3.17.0.4)
|
57
|
+
lint_roller (1.1.0)
|
58
|
+
logger (1.6.6)
|
59
|
+
memo_wise (1.11.0)
|
45
60
|
method_source (1.1.0)
|
46
|
-
minitest (5.25.
|
61
|
+
minitest (5.25.4)
|
47
62
|
parallel (1.26.3)
|
48
|
-
parser (3.3.
|
63
|
+
parser (3.3.7.1)
|
49
64
|
ast (~> 2.4.1)
|
50
65
|
racc
|
51
|
-
|
52
|
-
|
66
|
+
pp (0.6.2)
|
67
|
+
prettyprint
|
68
|
+
prettyprint (0.2.0)
|
69
|
+
prism (1.3.0)
|
70
|
+
pry (0.15.2)
|
53
71
|
coderay (~> 1.1)
|
54
72
|
method_source (~> 1.0)
|
55
|
-
|
56
|
-
|
57
|
-
|
73
|
+
psych (5.2.3)
|
74
|
+
date
|
75
|
+
stringio
|
58
76
|
racc (1.8.1)
|
59
77
|
rainbow (3.1.1)
|
60
78
|
rake (13.2.1)
|
61
|
-
|
62
|
-
|
63
|
-
|
79
|
+
rdoc (6.12.0)
|
80
|
+
psych (>= 4.0.0)
|
81
|
+
regexp_parser (2.10.0)
|
82
|
+
reline (0.6.0)
|
83
|
+
io-console (~> 0.5)
|
84
|
+
rexml (3.4.1)
|
85
|
+
rouge (4.5.1)
|
64
86
|
rspec (3.13.0)
|
65
87
|
rspec-core (~> 3.13.0)
|
66
88
|
rspec-expectations (~> 3.13.0)
|
67
89
|
rspec-mocks (~> 3.13.0)
|
68
|
-
rspec-core (3.13.
|
90
|
+
rspec-core (3.13.3)
|
69
91
|
rspec-support (~> 3.13.0)
|
70
92
|
rspec-expectations (3.13.3)
|
71
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
@@ -73,36 +95,42 @@ GEM
|
|
73
95
|
rspec-mocks (3.13.2)
|
74
96
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
97
|
rspec-support (~> 3.13.0)
|
76
|
-
rspec-support (3.13.
|
77
|
-
rubocop (1.
|
98
|
+
rspec-support (3.13.2)
|
99
|
+
rubocop (1.73.2)
|
78
100
|
json (~> 2.3)
|
79
|
-
language_server-protocol (
|
101
|
+
language_server-protocol (~> 3.17.0.2)
|
102
|
+
lint_roller (~> 1.1.0)
|
80
103
|
parallel (~> 1.10)
|
81
104
|
parser (>= 3.3.0.2)
|
82
105
|
rainbow (>= 2.2.2, < 4.0)
|
83
|
-
regexp_parser (>= 2.
|
84
|
-
rubocop-ast (>= 1.
|
106
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
107
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
85
108
|
ruby-progressbar (~> 1.7)
|
86
|
-
unicode-display_width (>= 2.4.0, <
|
87
|
-
rubocop-ast (1.
|
109
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
110
|
+
rubocop-ast (1.38.1)
|
88
111
|
parser (>= 3.3.1.0)
|
89
|
-
rubocop-performance (1.
|
90
|
-
|
91
|
-
rubocop
|
92
|
-
|
93
|
-
|
112
|
+
rubocop-performance (1.24.0)
|
113
|
+
lint_roller (~> 1.1)
|
114
|
+
rubocop (>= 1.72.1, < 2.0)
|
115
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
116
|
+
rubocop-rspec (3.5.0)
|
117
|
+
lint_roller (~> 1.1)
|
118
|
+
rubocop (~> 1.72, >= 1.72.1)
|
94
119
|
ruby-progressbar (1.13.0)
|
120
|
+
runger_byebug (11.4.0)
|
121
|
+
irb
|
122
|
+
reline
|
95
123
|
runger_config (5.2.0)
|
96
124
|
activesupport (>= 7.1.2)
|
97
|
-
runger_release_assistant (0.
|
98
|
-
activesupport (>= 6
|
99
|
-
memo_wise (>= 1.7
|
100
|
-
rainbow (>= 3.0
|
125
|
+
runger_release_assistant (2.0.0)
|
126
|
+
activesupport (>= 6)
|
127
|
+
memo_wise (>= 1.7)
|
128
|
+
rainbow (>= 3.0)
|
101
129
|
slop (~> 4.8)
|
102
|
-
runger_style (
|
130
|
+
runger_style (5.7.0)
|
103
131
|
prism (>= 0.24.0)
|
104
|
-
rubocop (>= 1.
|
105
|
-
securerandom (0.
|
132
|
+
rubocop (>= 1.72.0)
|
133
|
+
securerandom (0.4.1)
|
106
134
|
simplecov (0.22.0)
|
107
135
|
docile (~> 1.1)
|
108
136
|
simplecov-html (~> 0.11)
|
@@ -113,9 +141,13 @@ GEM
|
|
113
141
|
simplecov-html (0.13.1)
|
114
142
|
simplecov_json_formatter (0.1.4)
|
115
143
|
slop (4.10.1)
|
144
|
+
stringio (3.1.5)
|
116
145
|
tzinfo (2.0.6)
|
117
146
|
concurrent-ruby (~> 1.0)
|
118
|
-
unicode-display_width (
|
147
|
+
unicode-display_width (3.1.4)
|
148
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
149
|
+
unicode-emoji (4.0.4)
|
150
|
+
uri (1.0.3)
|
119
151
|
|
120
152
|
PLATFORMS
|
121
153
|
ruby
|
@@ -124,7 +156,7 @@ DEPENDENCIES
|
|
124
156
|
bundler
|
125
157
|
climate_control
|
126
158
|
pry
|
127
|
-
pry-byebug
|
159
|
+
pry-byebug!
|
128
160
|
rake
|
129
161
|
rspec
|
130
162
|
rubocop
|
@@ -136,8 +168,75 @@ DEPENDENCIES
|
|
136
168
|
simplecov
|
137
169
|
simplecov-cobertura
|
138
170
|
|
171
|
+
CHECKSUMS
|
172
|
+
activesupport (8.0.2) sha256=8565cddba31b900cdc17682fd66ecd020441e3eef320a9930285394e8c07a45e
|
173
|
+
ast (2.4.2) sha256=1e280232e6a33754cde542bc5ef85520b74db2aac73ec14acef453784447cc12
|
174
|
+
base64 (0.2.0) sha256=0f25e9b21a02a0cc0cea8ef92b2041035d39350946e8789c562b2d1a3da01507
|
175
|
+
benchmark (0.4.0) sha256=0f12f8c495545e3710c3e4f0480f63f06b4c842cc94cec7f33a956f5180e874a
|
176
|
+
bigdecimal (3.1.9) sha256=2ffc742031521ad69c2dfc815a98e426a230a3d22aeac1995826a75dabfad8cc
|
177
|
+
climate_control (1.2.0) sha256=36b21896193fa8c8536fa1cd843a07cf8ddbd03aaba43665e26c53ec1bd70aa5
|
178
|
+
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
179
|
+
concurrent-ruby (1.3.5) sha256=813b3e37aca6df2a21a3b9f1d497f8cbab24a2b94cab325bffe65ee0f6cbebc6
|
180
|
+
connection_pool (2.5.0) sha256=233b92f8d38e038c1349ccea65dd3772727d669d6d2e71f9897c8bf5cd53ebfc
|
181
|
+
date (3.4.1) sha256=bf268e14ef7158009bfeaec40b5fa3c7271906e88b196d958a89d4b408abe64f
|
182
|
+
diff-lcs (1.6.0) sha256=a1e7f7b272962f8fc769358ad00001b87cdcf32ba349d6c70c6b544613d2da2e
|
183
|
+
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
|
184
|
+
drb (2.2.1) sha256=e9d472bf785f558b96b25358bae115646da0dbfd45107ad858b0bc0d935cb340
|
185
|
+
i18n (1.14.7) sha256=ceba573f8138ff2c0915427f1fc5bdf4aa3ab8ae88c8ce255eb3ecf0a11a5d0f
|
186
|
+
io-console (0.8.0) sha256=cd6a9facbc69871d69b2cb8b926fc6ea7ef06f06e505e81a64f14a470fddefa2
|
187
|
+
irb (1.15.1) sha256=d9bca745ac4207a8b728a52b98b766ca909b86ff1a504bcde3d6f8c84faae890
|
188
|
+
json (2.10.2) sha256=34e0eada93022b2a0a3345bb0b5efddb6e9ff5be7c48e409cfb54ff8a36a8b06
|
189
|
+
language_server-protocol (3.17.0.4) sha256=c484626478664fd13482d8180947c50a8590484b1258b99b7aedb3b69df89669
|
190
|
+
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
191
|
+
logger (1.6.6) sha256=dd618d24e637715472732e7eed02e33cfbdf56deaad225edd0f1f89d38024017
|
192
|
+
memo_wise (1.11.0) sha256=06ef23a1edb6b8ee4f37d950bba04836b437b4d1036e45d24c2fd2f25b5490c3
|
193
|
+
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
194
|
+
minitest (5.25.4) sha256=9cf2cae25ac4dfc90c988ebc3b917f53c054978b673273da1bd20bcb0778f947
|
195
|
+
parallel (1.26.3) sha256=d86babb7a2b814be9f4b81587bf0b6ce2da7d45969fab24d8ae4bf2bb4d4c7ef
|
196
|
+
parser (3.3.7.1) sha256=7dbe61618025519024ac72402a6677ead02099587a5538e84371b76659e6aca1
|
197
|
+
pp (0.6.2) sha256=947ec3120c6f92195f8ee8aa25a7b2c5297bb106d83b41baa02983686577b6ff
|
198
|
+
prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
|
199
|
+
prism (1.3.0) sha256=b11620829831b1cb7e6c9b46c81ff8a6e36ccb3f888f164485eb7351f386273a
|
200
|
+
pry (0.15.2) sha256=12d54b8640d3fa29c9211dd4ffb08f3fd8bf7a4fd9b5a73ce5b59c8709385b6b
|
201
|
+
pry-byebug (3.10.1)
|
202
|
+
psych (5.2.3) sha256=84a54bb952d14604fea22d99938348814678782f58b12648fcdfa4d2fce859ee
|
203
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
204
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
205
|
+
rake (13.2.1) sha256=46cb38dae65d7d74b6020a4ac9d48afed8eb8149c040eccf0523bec91907059d
|
206
|
+
rdoc (6.12.0) sha256=7d6f706e070bffa5d18a448f24076cbfb34923a99c1eab842aa18e6ca69f56e0
|
207
|
+
regexp_parser (2.10.0) sha256=cb6f0ddde88772cd64bff1dbbf68df66d376043fe2e66a9ef77fcb1b0c548c61
|
208
|
+
reline (0.6.0) sha256=57620375dcbe56ec09bac7192bfb7460c716bbf0054dc94345ecaa5438e539d2
|
209
|
+
rexml (3.4.1) sha256=c74527a9a0a04b4ec31dbe0dc4ed6004b960af943d8db42e539edde3a871abca
|
210
|
+
rouge (4.5.1) sha256=2ac81c6dee7019bbc6600d4c2d641d730d65c165941400ebd924259067e690dd
|
211
|
+
rspec (3.13.0) sha256=d490914ac1d5a5a64a0e1400c1d54ddd2a501324d703b8cfe83f458337bab993
|
212
|
+
rspec-core (3.13.3) sha256=25136507f4f9cf2e8977a2851e64e438b4331646054e345998714108745cdfe4
|
213
|
+
rspec-expectations (3.13.3) sha256=0e6b5af59b900147698ea0ff80456c4f2e69cac4394fbd392fbd1ca561f66c58
|
214
|
+
rspec-mocks (3.13.2) sha256=2327335def0e1665325a9b617e3af9ae20272741d80ac550336309a7c59abdef
|
215
|
+
rspec-support (3.13.2) sha256=cea3a2463fd9b84b9dcc9685efd80ea701aa8f7b3decb3b3ce795ed67737dbec
|
216
|
+
rubocop (1.73.2) sha256=35cd1b1365ba97234323fe771abcecd09c9b77098464cd726c76aa7d9bc12b5d
|
217
|
+
rubocop-ast (1.38.1) sha256=80ecbe2ac9bb26693cab9405bf72b41b85a1f909f20f021b983c32c2e7d857fe
|
218
|
+
rubocop-performance (1.24.0) sha256=e5bd39ff3e368395b9af886927cc37f5892f43db4bd6c8526594352d5b4440b5
|
219
|
+
rubocop-rspec (3.5.0) sha256=710c942fe1af884ba8eea75cbb8bdbb051929a2208880a6fc2e2dce1eed5304c
|
220
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
221
|
+
runger_byebug (11.4.0) sha256=569e22ba2215f57e7f69e145fcb63be401e29fcd312f7936d813e12d0c7bbee6
|
222
|
+
runger_config (5.2.0) sha256=9b76d767a2daa63f6f8f2c52a8183f3f09a877cd35bcaee692d25377f4dd4558
|
223
|
+
runger_release_assistant (2.0.0) sha256=f4f5708291eaeef1b881208f87a494877fe768739d6e96b7293fc335b28a3865
|
224
|
+
runger_style (5.7.0) sha256=200790f3998e0b924df17efc9d440ddec99508bae983ba2a63f42b80624762f0
|
225
|
+
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
226
|
+
simple_cov-formatter-terminal (1.8.0)
|
227
|
+
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
228
|
+
simplecov-cobertura (2.1.0) sha256=2c6532e34df2e38a379d72cef9a05c3b16c64ce90566beebc6887801c4ad3f02
|
229
|
+
simplecov-html (0.13.1) sha256=5dab0b7ee612e60e9887ad57693832fdf4695b4c0c859eaea5f95c18791ef10b
|
230
|
+
simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
|
231
|
+
slop (4.10.1) sha256=844322b5ffcf17ed4815fdb173b04a20dd82b4fd93e3744c88c8fafea696d9c7
|
232
|
+
stringio (3.1.5) sha256=bca92461515a131535743bc81d5559fa1de7d80cff9a654d6c0af6f9f27e35c8
|
233
|
+
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
234
|
+
unicode-display_width (3.1.4) sha256=8caf2af1c0f2f07ec89ef9e18c7d88c2790e217c482bfc78aaa65eadd5415ac1
|
235
|
+
unicode-emoji (4.0.4) sha256=2c2c4ef7f353e5809497126285a50b23056cc6e61b64433764a35eff6c36532a
|
236
|
+
uri (1.0.3) sha256=e9f2244608eea2f7bc357d954c65c910ce0399ca5e18a7a29207ac22d8767011
|
237
|
+
|
139
238
|
RUBY VERSION
|
140
|
-
ruby 3.
|
239
|
+
ruby 3.4.2p28
|
141
240
|
|
142
241
|
BUNDLED WITH
|
143
|
-
2.
|
242
|
+
2.6.3
|
data/README.md
CHANGED
@@ -2,6 +2,26 @@
|
|
2
2
|
|
3
3
|

|
4
4
|
|
5
|
+
<!--ts-->
|
6
|
+
* [SimpleCov::Formatter::Terminal](#simplecovformatterterminal)
|
7
|
+
* [Installation](#installation)
|
8
|
+
* [Usage](#usage)
|
9
|
+
* [Which lines to print](#which-lines-to-print)
|
10
|
+
* [Modifying the spec_to_app_file_map](#modifying-the-spec_to_app_file_map)
|
11
|
+
* [Manually specifying file for which to show coverage](#manually-specifying-file-for-which-to-show-coverage)
|
12
|
+
* [Branch coverage](#branch-coverage)
|
13
|
+
* [Terminal hyperlinks](#terminal-hyperlinks)
|
14
|
+
* [Disabling](#disabling)
|
15
|
+
* [Via env var](#via-env-var)
|
16
|
+
* [Development](#development)
|
17
|
+
* [Contributing](#contributing)
|
18
|
+
* [License](#license)
|
19
|
+
|
20
|
+
<!-- Created by https://github.com/ekalinin/github-markdown-toc -->
|
21
|
+
<!-- Added by: david, at: Wed Mar 12 02:48:00 PM CDT 2025 -->
|
22
|
+
|
23
|
+
<!--te-->
|
24
|
+
|
5
25
|
## Installation
|
6
26
|
|
7
27
|
*Note:* This gem depends upon RSpec. If you aren't using RSpec to run your tests, it won't work!
|
@@ -134,6 +154,12 @@ For example, this pattern will work to make the line numbers clickable links tha
|
|
134
154
|
SIMPLECOV_TERMINAL_HYPERLINK_PATTERN="vscode://file/%f:%l"
|
135
155
|
```
|
136
156
|
|
157
|
+
## Disabling
|
158
|
+
|
159
|
+
### Via env var
|
160
|
+
|
161
|
+
You can disable SimpleCov::Formatter::Terminal by setting a `DISABLE_SIMPLECOV_TERMINAL` environment variable to any value.
|
162
|
+
|
137
163
|
## Development
|
138
164
|
|
139
165
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/rspec` to run
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module SimpleCov::Formatter::Terminal::ColorPrinting
|
4
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
5
4
|
def color(message, color)
|
6
5
|
case color
|
7
6
|
when :white then "\e[0;37;49m#{message}\e[0m"
|
@@ -14,5 +13,4 @@ module SimpleCov::Formatter::Terminal::ColorPrinting
|
|
14
13
|
else raise("Unknown color format '#{color}'.")
|
15
14
|
end
|
16
15
|
end
|
17
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
18
16
|
end
|
@@ -161,7 +161,7 @@ class SimpleCov::Formatter::Terminal::ResultPrinter
|
|
161
161
|
@sourcefile ||= @result.files.find { _1.filename.end_with?(targeted_application_file) }
|
162
162
|
end
|
163
163
|
|
164
|
-
# rubocop:disable Metrics/
|
164
|
+
# rubocop:disable Metrics/PerceivedComplexity
|
165
165
|
memo_wise \
|
166
166
|
def line_numbers_to_print
|
167
167
|
max_line_number = sourcefile.lines.map(&:line_number).max
|
@@ -197,7 +197,7 @@ class SimpleCov::Formatter::Terminal::ResultPrinter
|
|
197
197
|
end
|
198
198
|
end.to_set
|
199
199
|
end
|
200
|
-
# rubocop:enable Metrics/
|
200
|
+
# rubocop:enable Metrics/PerceivedComplexity
|
201
201
|
|
202
202
|
memo_wise \
|
203
203
|
def line_printer
|
@@ -46,16 +46,18 @@ class SimpleCov::Formatter::Terminal
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def format(result)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
49
|
+
unless ENV.key?('DISABLE_SIMPLECOV_TERMINAL')
|
50
|
+
if executed_spec_files.nil?
|
51
|
+
print_info_for_no_executed_specs
|
52
|
+
elsif unmappable_spec_file? && targeted_application_file.nil?
|
53
|
+
print_info_for_undeterminable_application_target
|
54
|
+
elsif targeted_application_file.nil?
|
55
|
+
print_info_for_undetermined_application_target
|
56
|
+
elsif File.exist?(targeted_application_file)
|
57
|
+
print_coverage_info(result)
|
58
|
+
else
|
59
|
+
print_info_for_nonexistent_application_target
|
60
|
+
end
|
59
61
|
end
|
60
62
|
end
|
61
63
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_cov-formatter-terminal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Runger
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-12 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -132,7 +131,6 @@ metadata:
|
|
132
131
|
source_code_uri: https://github.com/davidrunger/simple_cov-formatter-terminal
|
133
132
|
changelog_uri: https://github.com/davidrunger/simple_cov-formatter-terminal/blob/main/CHANGELOG.md
|
134
133
|
rubygems_mfa_required: 'true'
|
135
|
-
post_install_message:
|
136
134
|
rdoc_options: []
|
137
135
|
require_paths:
|
138
136
|
- lib
|
@@ -140,15 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
138
|
requirements:
|
141
139
|
- - ">="
|
142
140
|
- !ruby/object:Gem::Version
|
143
|
-
version: 3.
|
141
|
+
version: 3.4.0
|
144
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
143
|
requirements:
|
146
144
|
- - ">="
|
147
145
|
- !ruby/object:Gem::Version
|
148
146
|
version: '0'
|
149
147
|
requirements: []
|
150
|
-
rubygems_version: 3.
|
151
|
-
signing_key:
|
148
|
+
rubygems_version: 3.6.3
|
152
149
|
specification_version: 4
|
153
150
|
summary: Print detailed code coverage info to the terminal
|
154
151
|
test_files: []
|