test_bench 2.0.0.3 → 2.0.0.4
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 +11 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5056bf1f2a3a7e49fc0c6b2c48b6de4458c6e524f1471bc91ef55043680a7f33
|
4
|
+
data.tar.gz: 56799317c689ad226da98c23430bc5968cc387930c63fa9c7dce12a568eaa3e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 121e4c721118c2e24fae564b2fe1cc663120a151ff003fd05df0f086aed5d759c454f2fa91c6a9956e8705830604a88f207b780beee685071b21c6314e03bf56
|
7
|
+
data.tar.gz: 06fb902aaa85178c08d94cc3328be871c8fbb1f8059e0849066eb58f29b9ee150da2a22b1b8597db1a48b2a1dbb843075d9372340e3fe8c91cb169926e750c4c
|
data/lib/test_bench/cli.rb
CHANGED
@@ -147,12 +147,19 @@ module TestBench
|
|
147
147
|
|
148
148
|
when '-x', '--exclude', '--no-exclude'
|
149
149
|
if not negated?(switch)
|
150
|
-
|
150
|
+
exclude_pattern_text = switch_value!(argument_index, switch)
|
151
|
+
|
152
|
+
if env.key?('TEST_BENCH_EXCLUDE_FILE_PATTERN')
|
153
|
+
exclude_pattern_text = [
|
154
|
+
env['TEST_BENCH_EXCLUDE_FILE_PATTERN'],
|
155
|
+
exclude_pattern_text
|
156
|
+
].join(',')
|
157
|
+
end
|
151
158
|
else
|
152
|
-
|
159
|
+
exclude_pattern_text = ''
|
153
160
|
end
|
154
161
|
|
155
|
-
env['TEST_BENCH_EXCLUDE_FILE_PATTERN'] =
|
162
|
+
env['TEST_BENCH_EXCLUDE_FILE_PATTERN'] = exclude_pattern_text
|
156
163
|
|
157
164
|
when '-f', '--only-failure', '--no-only-failure'
|
158
165
|
if not negated?(switch)
|
@@ -205,7 +212,7 @@ module TestBench
|
|
205
212
|
|
206
213
|
Configuration Options:
|
207
214
|
\t-d, --[no]detail Always show (or hide) details (Default: #{Session::Output::Detail.default})
|
208
|
-
\t-x, --[no-]exclude PATTERN Do not execute test files matching PATTERN (Default: #{Run::GetFiles::Defaults.
|
215
|
+
\t-x, --[no-]exclude PATTERN Do not execute test files matching PATTERN (Default: #{Run::GetFiles::Defaults.exclude_patterns.inspect})
|
209
216
|
\t-f, --[no-]only-failure Don't display output for test files that pass (Default: #{Run::Output::File::Defaults.only_failure ? 'on' : 'off'})
|
210
217
|
\t-o, --output-styling [on|off|detect]
|
211
218
|
\t Render output coloring and font styling escape codes (Default: #{Output::Writer::Styling.default})
|