test_bench 1.2.0.2 → 1.2.0.8
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/lib/test_bench/cli.rb +1 -1
- data/lib/test_bench/cli/parse_arguments.rb +1 -1
- data/lib/test_bench/output/raw.rb +16 -6
- data/lib/test_bench/run.rb +4 -4
- data/lib/test_bench/test_bench.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75966d6cf6ce67d117c91e82985d8d68edde7017b8c342ee923d565af1ecb966
|
4
|
+
data.tar.gz: d5078aaddeea8ce9e293f9ba025358400a92cb4383d2318f85edb2cb4eaa635a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a0b95384cadb14e19d923b70a793014aeb3d5ac783681d7ef1d3693170e85de43969bf2b8c74f3a1e90eb06bb8f2d2563fe3bf666b5ce8986fd45814f403b47
|
7
|
+
data.tar.gz: a03c1257cbdee5aeb048f12dedeca28e16078062d712c9552791ab06b020f09b690962aab9699df2d77a2e148103a57c073340b8cbebab09b0dc95071a110ddb
|
data/lib/test_bench/cli.rb
CHANGED
@@ -8,7 +8,7 @@ module TestBench
|
|
8
8
|
read_stdin = $stdin.stat.pipe?
|
9
9
|
|
10
10
|
if read_stdin && $stdin.eof?
|
11
|
-
|
11
|
+
STDERR.puts "$stdin is a pipe, but no data was written to it; no test files will be run"
|
12
12
|
end
|
13
13
|
|
14
14
|
Run.(exclude: exclude_file_pattern) do |run|
|
@@ -66,7 +66,7 @@ TEXT
|
|
66
66
|
env['TEST_BENCH_ABORT_ON_ERROR'] = abort_on_error ? 'on' : 'off'
|
67
67
|
end
|
68
68
|
|
69
|
-
parser.on('-d', '--[no-]detail
|
69
|
+
parser.on('-d', '--[no-]detail', %{Always show (or hide) details (Default: #{Output::Raw::Defaults.detail})}) do |detail|
|
70
70
|
if detail.nil?
|
71
71
|
detail = 'on'
|
72
72
|
elsif detail == true
|
@@ -199,12 +199,22 @@ module TestBench
|
|
199
199
|
|
200
200
|
color = result ? :green : :red
|
201
201
|
|
202
|
-
writer
|
203
|
-
|
204
|
-
|
205
|
-
.
|
206
|
-
|
207
|
-
.
|
202
|
+
writer.indent
|
203
|
+
|
204
|
+
if result
|
205
|
+
writer.escape_code(:green)
|
206
|
+
else
|
207
|
+
writer.escape_code(:bold).escape_code(:red)
|
208
|
+
end
|
209
|
+
|
210
|
+
writer.text(text)
|
211
|
+
|
212
|
+
writer.escape_code(:reset_fg)
|
213
|
+
unless result
|
214
|
+
writer.escape_code(:reset_intensity)
|
215
|
+
end
|
216
|
+
|
217
|
+
writer.newline
|
208
218
|
end
|
209
219
|
|
210
220
|
def skip_test(title)
|
data/lib/test_bench/run.rb
CHANGED
@@ -79,15 +79,15 @@ module TestBench
|
|
79
79
|
def directory(path)
|
80
80
|
glob_pattern = File.join(path, '**/*.rb')
|
81
81
|
|
82
|
-
Dir
|
83
|
-
next if exclude_pattern.match?(path)
|
84
|
-
|
82
|
+
Dir.glob(glob_pattern).sort.each do |path|
|
85
83
|
file(path)
|
86
84
|
end
|
87
85
|
end
|
88
86
|
|
89
87
|
def file(path)
|
90
|
-
|
88
|
+
unless exclude_pattern.match?(path)
|
89
|
+
session.load(path)
|
90
|
+
end
|
91
91
|
end
|
92
92
|
|
93
93
|
module Defaults
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_bench
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0.
|
4
|
+
version: 1.2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Ladd
|
8
8
|
autorequire:
|
9
9
|
bindir: script
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test_bench-fixture
|
@@ -111,8 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
|
-
rubygems_version: 3.1.
|
114
|
+
rubygems_version: 3.1.6
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
|
-
summary: Principled Test Framework for Ruby
|
117
|
+
summary: Principled Test Framework for Ruby and MRuby
|
118
118
|
test_files: []
|