dohtest 0.1.48 → 0.1.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dohtest +3 -2
- data/lib/dohtest/configure.rb +1 -1
- data/lib/dohtest/master_runner.rb +7 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2553b75b56da7e2f61c1e915b141fc9fc1ab64d5
|
4
|
+
data.tar.gz: dd631e9f6f19c4bafa23d69dd19b25e73f852553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2d9f188d411cd08fd1f143c66b8dd3a5c5795b0937362c86d449c45d8f1b93d1bc21dfed925fb2aea6fd4642dd65840c1abcc0b5c66107050a3c42ed2d61f7b
|
7
|
+
data.tar.gz: e738221c256c5924f3f23338dbf93657f203343a82aac04d95c54cab845f2e62de6ac42bdfccf764e9aa0986f8ab07886b21495789f8f2d2d04e498494225457
|
data/bin/dohtest
CHANGED
@@ -22,7 +22,6 @@ paths = opts.varargs
|
|
22
22
|
|
23
23
|
DohTest.config[:config_options] = opts.config_options
|
24
24
|
DohTest.config[:seed] = opts.seed.to_i if opts.seed
|
25
|
-
DohTest.configure(paths.first)
|
26
25
|
DohTest.config[:grep] = opts.grep if opts.grep
|
27
26
|
DohTest.config[:glob] = opts.glob if opts.glob
|
28
27
|
DohTest.config[:no_color] = true if opts.no_color
|
@@ -31,5 +30,7 @@ DohTest.config[:extra_verbose] = true if opts.extra_verbose
|
|
31
30
|
DohTest.config[:quiet] = true if opts.quiet
|
32
31
|
DohTest.config[:max_errors] = opts.max_errors
|
33
32
|
DohTest.config[:max_failures] = opts.max_failures
|
33
|
+
DohTest.config[:paths] = paths
|
34
|
+
DohTest.configure(paths.first)
|
34
35
|
|
35
|
-
exit DohTest::MasterRunner.new(DohTest::StreamOutput.new, DohTest.config
|
36
|
+
exit DohTest::MasterRunner.new(DohTest::StreamOutput.new, DohTest.config).run
|
data/lib/dohtest/configure.rb
CHANGED
@@ -4,8 +4,11 @@ require 'dohtest/require_paths'
|
|
4
4
|
module DohTest
|
5
5
|
|
6
6
|
class MasterRunner
|
7
|
-
def initialize(output, config, paths)
|
8
|
-
@output
|
7
|
+
def initialize(output, config, paths = nil)
|
8
|
+
@output = output
|
9
|
+
@config = config
|
10
|
+
# temporary for ease of transition
|
11
|
+
@config[:paths] ||= paths
|
9
12
|
end
|
10
13
|
|
11
14
|
def run
|
@@ -13,12 +16,12 @@ class MasterRunner
|
|
13
16
|
@config[:pre_test_callback].each do |callback|
|
14
17
|
callback.call(@output)
|
15
18
|
end
|
16
|
-
if @paths.empty?
|
19
|
+
if @config[:paths].empty?
|
17
20
|
unless DohTest.require_paths(@config[:glob], ['.'])
|
18
21
|
DohTest.require_paths(@config[:glob], [@config[:root]])
|
19
22
|
end
|
20
23
|
else
|
21
|
-
DohTest.require_paths(@config[:glob], @paths)
|
24
|
+
DohTest.require_paths(@config[:glob], @config[:paths])
|
22
25
|
end
|
23
26
|
|
24
27
|
srand(@config[:seed])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dohtest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Makani Mason
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dohroot
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.6.
|
88
|
+
rubygems_version: 2.6.13
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: minimalist unit test framework
|