dohtest 0.1.45 → 0.1.46
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 +4 -4
- data/lib/dohtest/configure.rb +2 -1
- data/lib/dohtest/group_runner.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d4a0a6e82816cc618f7a30470c251d3d5bd3efc
|
|
4
|
+
data.tar.gz: cf0afe95466600f38600a1b2e6b8f7f6eed32cf7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6241a2ec9ca6a40b8a26cbf042013103af540567f394b7e59cb8bdde5e3fdc1bf6bb09e52e9f5e0de3088843c7b4767f3270b2e7bc3f7eb1a966ea198709c8b2
|
|
7
|
+
data.tar.gz: 6a477525b2fb98a193720601057c1e71cae2e639ca0c02f08834fab41e26799beb1fbbff47d91c19296b1c192fa55e7680971183e9577be763214b3d6de5b8e4
|
data/lib/dohtest/configure.rb
CHANGED
|
@@ -4,7 +4,8 @@ module DohTest
|
|
|
4
4
|
extend self
|
|
5
5
|
|
|
6
6
|
def config
|
|
7
|
-
@config ||= {:post_all_callback => [], :pre_group_callback => [], :post_group_callback => [], :pre_test_callback => [],
|
|
7
|
+
@config ||= {:post_all_callback => [], :pre_group_callback => [], :post_group_callback => [], :pre_test_callback => [],
|
|
8
|
+
:pre_each_callback => [], :post_each_callback => []}
|
|
8
9
|
end
|
|
9
10
|
|
|
10
11
|
def find_root(start_directory, max_tries = 20)
|
data/lib/dohtest/group_runner.rb
CHANGED
|
@@ -104,7 +104,13 @@ class GroupRunner
|
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
def run_after_each
|
|
107
|
-
@group.send(@after_each_method)
|
|
107
|
+
@group.send(@after_each_method) if @after_each_method
|
|
108
|
+
@config[:post_each_callback].each do |callback|
|
|
109
|
+
if !callback.call
|
|
110
|
+
@error_count += 1
|
|
111
|
+
@output.callback_failed(callback.inspect)
|
|
112
|
+
end
|
|
113
|
+
end
|
|
108
114
|
rescue => error
|
|
109
115
|
caught_error(error)
|
|
110
116
|
end
|
|
@@ -153,7 +159,7 @@ class GroupRunner
|
|
|
153
159
|
@output.test_begin(@group_name, @test_name)
|
|
154
160
|
run_before_each
|
|
155
161
|
run_test_method unless @before_each_failed
|
|
156
|
-
run_after_each
|
|
162
|
+
run_after_each
|
|
157
163
|
@tests_ran += 1
|
|
158
164
|
@output.test_end(@group_name, @test_name)
|
|
159
165
|
end
|
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.46
|
|
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: 2016-02-
|
|
12
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: dohroot
|