dohtest 0.1.18 → 0.1.19
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.
- data/bin/dohtest +8 -10
- data/lib/{doh/test → dohtest}/assertions.rb +1 -1
- data/lib/{doh/test → dohtest}/configure.rb +3 -3
- data/lib/{doh/test → dohtest}/group_runner.rb +1 -1
- data/lib/{doh/test → dohtest}/master_runner.rb +2 -2
- data/lib/{doh/test → dohtest}/stream_output.rb +1 -1
- data/lib/{doh/test → dohtest}/test_group.rb +1 -1
- data/lib/dohtest.rb +3 -0
- data/test/test_backtrace_parser.rb +2 -2
- data/test/test_group_runner.rb +3 -3
- metadata +15 -14
- /data/lib/{doh/test → dohtest}/backtrace_parser.rb +0 -0
- /data/lib/{doh/test → dohtest}/capture_output.rb +0 -0
- /data/lib/{doh/test → dohtest}/failure.rb +0 -0
- /data/lib/{doh/test → dohtest}/require_paths.rb +0 -0
data/bin/dohtest
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require '
|
3
|
-
require '
|
4
|
-
require 'doh/test/master_runner'
|
5
|
-
require 'doh/test/stream_output'
|
2
|
+
require 'dohroot/options'
|
3
|
+
require 'dohtest'
|
6
4
|
|
7
5
|
opts = Doh::Options.new({
|
8
6
|
'grep' => [nil, "-g", "--grep <name>", "only execute tests with name that include the given value."],
|
@@ -13,10 +11,10 @@ opts = Doh::Options.new({
|
|
13
11
|
|
14
12
|
paths = (if opts.varargs.empty? then ['.'] else opts.varargs end)
|
15
13
|
|
16
|
-
DohTest
|
17
|
-
DohTest
|
18
|
-
DohTest
|
19
|
-
DohTest
|
20
|
-
DohTest
|
14
|
+
DohTest.configure(paths[0])
|
15
|
+
DohTest.config[:grep] = opts.grep if opts.grep
|
16
|
+
DohTest.config[:glob] = opts.glob if opts.glob
|
17
|
+
DohTest.config[:seed] = opts.seed.to_i if opts.seed
|
18
|
+
DohTest.config[:no_color] = true if opts.no_color
|
21
19
|
|
22
|
-
exit DohTest::MasterRunner.new(DohTest::StreamOutput.new, DohTest
|
20
|
+
exit DohTest::MasterRunner.new(DohTest::StreamOutput.new, DohTest.config, paths).run
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'dohroot'
|
2
2
|
|
3
3
|
module DohTest
|
4
4
|
|
@@ -28,8 +28,8 @@ def self.load_configuration_files(start_path)
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.add_default_config_values
|
31
|
-
DohTest
|
32
|
-
DohTest
|
31
|
+
DohTest.config[:glob] ||= '*.dt.rb'
|
32
|
+
DohTest.config[:seed] ||= (Time.new.to_f * 1000).to_i
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.configure(start_path)
|
data/lib/dohtest.rb
ADDED
data/test/test_group_runner.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
require '
|
1
|
+
require 'dohroot'; Doh.find_root_from_file
|
2
2
|
require 'minitest/autorun'
|
3
|
-
require '
|
4
|
-
require '
|
3
|
+
require 'dohtest/group_runner'
|
4
|
+
require 'dohtest/capture_output'
|
5
5
|
|
6
6
|
module DohTest
|
7
7
|
|
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.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-05-
|
13
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dohroot
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.1.
|
22
|
+
version: 0.1.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ! '>='
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 0.1.
|
30
|
+
version: 0.1.2
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: term-ansicolor
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,17 @@ extra_rdoc_files:
|
|
56
56
|
files:
|
57
57
|
- bin/dohtest
|
58
58
|
- bin/dohtest_repeat
|
59
|
-
- lib/
|
60
|
-
- lib/
|
61
|
-
- lib/
|
62
|
-
- lib/
|
63
|
-
- lib/
|
64
|
-
- lib/
|
65
|
-
- lib/
|
66
|
-
- lib/
|
67
|
-
- lib/
|
68
|
-
- lib/
|
59
|
+
- lib/dohtest/assertions.rb
|
60
|
+
- lib/dohtest/backtrace_parser.rb
|
61
|
+
- lib/dohtest/capture_output.rb
|
62
|
+
- lib/dohtest/configure.rb
|
63
|
+
- lib/dohtest/failure.rb
|
64
|
+
- lib/dohtest/group_runner.rb
|
65
|
+
- lib/dohtest/master_runner.rb
|
66
|
+
- lib/dohtest/require_paths.rb
|
67
|
+
- lib/dohtest/stream_output.rb
|
68
|
+
- lib/dohtest/test_group.rb
|
69
|
+
- lib/dohtest.rb
|
69
70
|
- test/test_backtrace_parser.rb
|
70
71
|
- test/test_group_runner.rb
|
71
72
|
- MIT-LICENSE
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|