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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/test_bench/cli.rb +11 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e339a07350e4307fe6c355d0587f798bcda55bfa88f88659995b3622a689caed
4
- data.tar.gz: a72b24041d652b53160ca7f24148286d0d03c3f175abbaee762b8ea0a739bda6
3
+ metadata.gz: 5056bf1f2a3a7e49fc0c6b2c48b6de4458c6e524f1471bc91ef55043680a7f33
4
+ data.tar.gz: 56799317c689ad226da98c23430bc5968cc387930c63fa9c7dce12a568eaa3e5
5
5
  SHA512:
6
- metadata.gz: 59359fc127f73ee307344787ce8326495dd094a6802abcd699f12faa1556e2731a3e9085b428d6905a81844d4f2d67dc39ec74e9e6be3755f51fec802e1a3a0e
7
- data.tar.gz: 0e57399c31846649a403a9877f4eee608840d82aad4c62f3c42cadab1e12e720cf5a1dd1ccdcf0da3322cbda8a899b363305d57c2c6d6ae54686d6311653d8c0
6
+ metadata.gz: 121e4c721118c2e24fae564b2fe1cc663120a151ff003fd05df0f086aed5d759c454f2fa91c6a9956e8705830604a88f207b780beee685071b21c6314e03bf56
7
+ data.tar.gz: 06fb902aaa85178c08d94cc3328be871c8fbb1f8059e0849066eb58f29b9ee150da2a22b1b8597db1a48b2a1dbb843075d9372340e3fe8c91cb169926e750c4c
@@ -147,12 +147,19 @@ module TestBench
147
147
 
148
148
  when '-x', '--exclude', '--no-exclude'
149
149
  if not negated?(switch)
150
- exclude_file_pattern_text = switch_value!(argument_index, switch)
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
- exclude_file_pattern_text = ''
159
+ exclude_pattern_text = ''
153
160
  end
154
161
 
155
- env['TEST_BENCH_EXCLUDE_FILE_PATTERN'] = exclude_file_pattern_text
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.exclude_file_pattern.inspect})
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})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.3
4
+ version: 2.0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd