dohtest 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
data/bin/dohtest CHANGED
@@ -1,8 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
- require 'doh/options'
3
- require 'doh/test/configure'
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::configure(paths[0])
17
- DohTest::config[:grep] = opts.grep if opts.grep
18
- DohTest::config[:glob] = opts.glob if opts.glob
19
- DohTest::config[:seed] = opts.seed.to_i if opts.seed
20
- DohTest::config[:no_color] = true if opts.no_color
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::config, paths).run
20
+ exit DohTest::MasterRunner.new(DohTest::StreamOutput.new, DohTest.config, paths).run
@@ -1,4 +1,4 @@
1
- require 'doh/test/failure'
1
+ require 'dohtest/failure'
2
2
 
3
3
  module DohTest
4
4
 
@@ -1,4 +1,4 @@
1
- require 'doh/root'
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::config[:glob] ||= '*.dt.rb'
32
- DohTest::config[:seed] ||= (Time.new.to_f * 1000).to_i
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)
@@ -1,4 +1,4 @@
1
- require 'doh/test/test_group'
1
+ require 'dohtest/test_group'
2
2
 
3
3
  module DohTest
4
4
 
@@ -1,5 +1,5 @@
1
- require 'doh/test/group_runner'
2
- require 'doh/test/require_paths'
1
+ require 'dohtest/group_runner'
2
+ require 'dohtest/require_paths'
3
3
 
4
4
  module DohTest
5
5
 
@@ -1,4 +1,4 @@
1
- require 'doh/test/backtrace_parser'
1
+ require 'dohtest/backtrace_parser'
2
2
  require 'set'
3
3
  require 'term/ansicolor'
4
4
 
@@ -1,4 +1,4 @@
1
- require 'doh/test/assertions'
1
+ require 'dohtest/assertions'
2
2
 
3
3
  module DohTest
4
4
 
data/lib/dohtest.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'dohtest/configure'
2
+ require 'dohtest/master_runner'
3
+ require 'dohtest/stream_output'
@@ -1,6 +1,6 @@
1
- require 'doh/root'; Doh::find_root_from_file
1
+ require 'dohroot'; Doh.find_root_from_file
2
2
  require 'minitest/autorun'
3
- require 'doh/test/backtrace_parser'
3
+ require 'dohtest/backtrace_parser'
4
4
 
5
5
  module DohTest
6
6
 
@@ -1,7 +1,7 @@
1
- require 'doh/root'; Doh::find_root_from_file
1
+ require 'dohroot'; Doh.find_root_from_file
2
2
  require 'minitest/autorun'
3
- require 'doh/test/group_runner'
4
- require 'doh/test/capture_output'
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.18
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-16 00:00:00.000000000 Z
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.0
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.0
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/doh/test/assertions.rb
60
- - lib/doh/test/backtrace_parser.rb
61
- - lib/doh/test/capture_output.rb
62
- - lib/doh/test/configure.rb
63
- - lib/doh/test/failure.rb
64
- - lib/doh/test/group_runner.rb
65
- - lib/doh/test/master_runner.rb
66
- - lib/doh/test/require_paths.rb
67
- - lib/doh/test/stream_output.rb
68
- - lib/doh/test/test_group.rb
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