simplecov-console 0.9.0 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +9 -1
- data/VERSION +1 -1
- data/lib/simplecov-console.rb +4 -3
- data/simplecov-console.gemspec +12 -24
- data/test/test_simplecov-console.rb +4 -0
- 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: 9989568c37dab62aec3e405242d62a25ef30814157f5d215d7536db51ef4ea47
|
4
|
+
data.tar.gz: 261234175d7b020155c10e3ed8614c0e63872dfef4af3c02b752d4408b65fcc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b017a907fc90934dbc77b3116f90713b6469e23ab7a391a6cd9e2b887e307d98ea16464a3c432cc8a3eac0040cdded334250298e87742b06f3e411ea36145268
|
7
|
+
data.tar.gz: f82b352890c4ca0cd0577f2a8cd9d03baa8bce70e5df04299fe62dd7439c602a9cedd3e8645eb088719530a9efd9e379346b3ed79af994b978a3fa485659d1da
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.9.2 (2024.09.17)
|
4
|
+
|
5
|
+
- Fix: typo in output ([#24](https://github.com/chetan/simplecov-console/pull/24))
|
6
|
+
|
7
|
+
## 0.9.1 (2021.02.01)
|
8
|
+
|
9
|
+
- Fix: Don't add ellipsis if line groups are not truncated - thanks [@lbraun](https://github.com/lbraun)! ([#21](https://github.com/chetan/simplecov-console/pull/21))
|
10
|
+
|
11
|
+
## 0.9 (2021.01.21)
|
12
|
+
|
13
|
+
- Added support for limiting number of lines shown
|
14
|
+
|
3
15
|
## 0.8 (2020.11.11)
|
4
16
|
|
5
17
|
- Added support for branch coverage - thanks [@robotdana!](https://github.com/robotdana) ([#19](https://github.com/chetan/simplecov-console/pull/19))
|
data/README.md
CHANGED
@@ -188,13 +188,21 @@ BRANCH COVERAGE: 83.33% -- 5/6 branches in 2 branches
|
|
188
188
|
|
189
189
|
## History
|
190
190
|
|
191
|
+
### 0.9.2 (2024.09.17)
|
192
|
+
|
193
|
+
- Fix: typo in output ([#24](https://github.com/chetan/simplecov-console/pull/24))
|
194
|
+
|
195
|
+
### 0.9.1 (2021.02.01)
|
196
|
+
|
197
|
+
- Fix: Don't add ellipsis if line groups are not truncated - thanks [@lbraun](https://github.com/lbraun)! ([#21](https://github.com/chetan/simplecov-console/pull/21))
|
198
|
+
|
191
199
|
### 0.9 (2021.01.21)
|
192
200
|
|
193
201
|
- Added support for limiting number of lines shown
|
194
202
|
|
195
203
|
### 0.8 (2020.11.11)
|
196
204
|
|
197
|
-
- Added support for branch coverage - thanks [@robotdana
|
205
|
+
- Added support for branch coverage - thanks [@robotdana](https://github.com/robotdana)! ([#19](https://github.com/chetan/simplecov-console/pull/19))
|
198
206
|
|
199
207
|
### 0.7.2 (2020.03.05)
|
200
208
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.2
|
data/lib/simplecov-console.rb
CHANGED
@@ -65,7 +65,7 @@ class SimpleCov::Formatter::Console
|
|
65
65
|
puts "COVERAGE: #{colorize(pct(result.covered_percent))} -- #{result.covered_lines}/#{result.total_lines} lines in #{result.files.size} files"
|
66
66
|
show_branch_coverage = show_branch_coverage?(result)
|
67
67
|
if show_branch_coverage
|
68
|
-
puts "BRANCH COVERAGE: #{colorize(pct(result.coverage_statistics[:branch].percent))} -- #{result.covered_branches}/#{result.total_branches} branches in #{result.files.size}
|
68
|
+
puts "BRANCH COVERAGE: #{colorize(pct(result.coverage_statistics[:branch].percent))} -- #{result.covered_branches}/#{result.total_branches} branches in #{result.files.size} files"
|
69
69
|
end
|
70
70
|
puts
|
71
71
|
|
@@ -153,8 +153,9 @@ class SimpleCov::Formatter::Console
|
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
156
|
-
|
157
|
-
|
156
|
+
max_lines = SimpleCov::Formatter::Console.max_lines
|
157
|
+
if max_lines > 0 && group_str.size > max_lines then
|
158
|
+
# Show at most N missing groups of lines
|
158
159
|
group_str = group_str[0, SimpleCov::Formatter::Console.max_lines] << "..."
|
159
160
|
end
|
160
161
|
|
data/simplecov-console.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: simplecov-console 0.9.
|
5
|
+
# stub: simplecov-console 0.9.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "simplecov-console".freeze
|
9
|
-
s.version = "0.9.
|
9
|
+
s.version = "0.9.2".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Chetan Sarva".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2024-09-17"
|
15
15
|
s.description = "Simple console output formatter for SimpleCov".freeze
|
16
16
|
s.email = "chetan@pixelcop.net".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -36,29 +36,17 @@ Gem::Specification.new do |s|
|
|
36
36
|
]
|
37
37
|
s.homepage = "http://github.com/chetan/simplecov-console".freeze
|
38
38
|
s.licenses = ["MIT".freeze]
|
39
|
-
s.rubygems_version = "3.
|
39
|
+
s.rubygems_version = "3.5.9".freeze
|
40
40
|
s.summary = "Simple console output formatter".freeze
|
41
41
|
|
42
|
-
|
43
|
-
s.specification_version = 4
|
44
|
-
end
|
42
|
+
s.specification_version = 4
|
45
43
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
|
54
|
-
else
|
55
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
56
|
-
s.add_dependency(%q<terminal-table>.freeze, [">= 0"])
|
57
|
-
s.add_dependency(%q<ansi>.freeze, [">= 0"])
|
58
|
-
s.add_dependency(%q<minitest>.freeze, [">= 0"])
|
59
|
-
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
60
|
-
s.add_dependency(%q<bundler>.freeze, ["~> 2.1"])
|
61
|
-
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
62
|
-
end
|
44
|
+
s.add_runtime_dependency(%q<simplecov>.freeze, [">= 0".freeze])
|
45
|
+
s.add_runtime_dependency(%q<terminal-table>.freeze, [">= 0".freeze])
|
46
|
+
s.add_runtime_dependency(%q<ansi>.freeze, [">= 0".freeze])
|
47
|
+
s.add_development_dependency(%q<minitest>.freeze, [">= 0".freeze])
|
48
|
+
s.add_development_dependency(%q<yard>.freeze, [">= 0".freeze])
|
49
|
+
s.add_development_dependency(%q<bundler>.freeze, ["~> 2.1".freeze])
|
50
|
+
s.add_development_dependency(%q<juwelier>.freeze, [">= 0".freeze])
|
63
51
|
end
|
64
52
|
|
@@ -61,6 +61,10 @@ class TestSimplecovConsole < MiniTest::Test
|
|
61
61
|
Line.new(3), Line.new(5)]
|
62
62
|
expected_result = ["1-3", "..."]
|
63
63
|
assert_equal expected_result, @console.missed(missed_lines)
|
64
|
+
|
65
|
+
SimpleCov::Formatter::Console.max_lines = 3
|
66
|
+
expected_result = ["1-3", "5"]
|
67
|
+
assert_equal expected_result, @console.missed(missed_lines)
|
64
68
|
end
|
65
69
|
|
66
70
|
def test_table_output
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov-console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chetan Sarva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.5.9
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Simple console output formatter
|