dohtest 0.1.14 → 0.1.15
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/lib/doh/test/group_runner.rb +12 -0
- data/lib/doh/test/master_runner.rb +3 -3
- metadata +2 -2
@@ -34,6 +34,12 @@ class GroupRunner
|
|
34
34
|
|
35
35
|
def run_before_all
|
36
36
|
@group.before_all if @group.respond_to?(:before_all)
|
37
|
+
if @config[:pre_group_callback]
|
38
|
+
if (!@config[:pre_group_callback].call())
|
39
|
+
@error_count += 1
|
40
|
+
@output.callback_failed(@config[:post_group_callback].inspect)
|
41
|
+
end
|
42
|
+
end
|
37
43
|
rescue => error
|
38
44
|
@before_all_failed = true
|
39
45
|
caught_error(error, 'before_all')
|
@@ -41,6 +47,12 @@ class GroupRunner
|
|
41
47
|
|
42
48
|
def run_after_all
|
43
49
|
@group.after_all if @group.respond_to?(:after_all)
|
50
|
+
if @config[:post_group_callback]
|
51
|
+
if (!@config[:post_group_callback].call())
|
52
|
+
@error_count += 1
|
53
|
+
@output.callback_failed(@config[:post_group_callback].inspect)
|
54
|
+
end
|
55
|
+
end
|
44
56
|
rescue => error
|
45
57
|
caught_error(error, 'after_all')
|
46
58
|
end
|
@@ -17,9 +17,9 @@ class MasterRunner
|
|
17
17
|
TestGroup.descendants.each do |group_class|
|
18
18
|
break if GroupRunner.new(group_class, @output, @config).run
|
19
19
|
end
|
20
|
-
if @config[:
|
21
|
-
if (!@config[:
|
22
|
-
@output.callback_failed(@config[:
|
20
|
+
if @config[:post_all_callback]
|
21
|
+
if (!@config[:post_all_callback].call())
|
22
|
+
@output.callback_failed(@config[:post_all_callback].inspect)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
@output.run_end(Time.now - start_time)
|
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.15
|
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-04-
|
13
|
+
date: 2013-04-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dohroot
|