test_bench-executable 3.0.0.1 → 3.0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1745536d95e28bb2fb167a1bf45dbef9f3552ce215b8822fd572bd3f9e73f47a
4
- data.tar.gz: 495cf6918c41db05cbb2436371790fa2a5a4aea8f77800346cb7cd307c5719fe
3
+ metadata.gz: 99f7c58efd64a6d3e10b8c74178a3d6b679cbdddf440b098a419deab9414701b
4
+ data.tar.gz: 116864b13a2df5e948ff1a0503278e8d6ad77804856b13f3a917a6eef6088bb9
5
5
  SHA512:
6
- metadata.gz: 4f5da2cfa3080e948fe68a5eb0bb3e3b732a3479b5f781ba83c476a684f7e7d9f5d33c9a5382f452d12858ff191d912195b4eb2ed19a93c326d9b44aae8d577b
7
- data.tar.gz: 7c5de16a06821b6493f49a71961058196a9fd89e748f066335a277d2384e50ea1eaf1f6762d95540f07c709509a3df9fa84e73f9ffc7a54a3dff1c8bfbb77b62
6
+ metadata.gz: 7dc73a804b876e21b921ca20731a420fecde5de9af6383c182b15cdf99318f66918c1056dfa6a1c92239598d3f0a281a75979ba606acab0975ec4628c8fa1e5a
7
+ data.tar.gz: e4e045ebb595ea6ef1504144310af15f38ba0f38dc50a192a4f49b80e4cbeacdd4b14b369b190dd44d8650d77a4ad9599018366130b2231f0691546c3cb1ccfa
data/executables/bench CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'test_bench'
3
+ require 'test_bench/executable'
4
4
 
5
5
  exit_code = TestBench::Executable.()
6
6
 
@@ -27,6 +27,12 @@ module TestBench
27
27
  arguments ||= ::ARGV
28
28
  env ||= ::ENV
29
29
 
30
+ options_env_var = env['TEST_BENCH_OPTIONS']
31
+ if not options_env_var.nil?
32
+ env_arguments = Shellwords.split(options_env_var)
33
+ arguments.unshift(*env_arguments)
34
+ end
35
+
30
36
  instance = new(arguments)
31
37
 
32
38
  instance.env = env
@@ -207,6 +213,7 @@ The following environment variables can also control execution:
207
213
  TEST_BENCH_OUTPUT_LEVEL See --output-level
208
214
  TEST_BENCH_OUTPUT_STYLING See --output-styling
209
215
  TEST_BENCH_DEFAULT_TEST_PATH Specifies default path
216
+ TEST_BENCH_OPTIONS Evaluated as command line arguments similar to RUBYOPT
210
217
 
211
218
  TEXT
212
219
  exit(true)
@@ -1,3 +1,5 @@
1
+ require 'shellwords'
2
+
1
3
  require 'test_bench/run'
2
4
 
3
5
  require 'test_bench/executable/defaults'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-executable
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.1
4
+ version: 3.0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brightworks Digital