dohtest 0.1.39 → 0.1.40
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/group_runner.rb +6 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff92bb0fee52aed522aef021600b36168d9dec7f
|
4
|
+
data.tar.gz: 6c77c2042c170be86917f2a922370bb9e9784a7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e41971fcab4302428670a1e28f7cf8f97af64d5448b6f7de68c38f9f32bf0738d8fff274abe8a1116217301f1c621d5fee123add1fd151ee8a279d515d827278
|
7
|
+
data.tar.gz: e623e91b3046ae6a6fa480f413f06d1f9461be6853353481eeef3bc6f571c1a34803acc5f39c650d497ce2d2efc2631c2d3767e1c3f5aac9840cfdd9978c8d70
|
data/lib/dohtest/group_runner.rb
CHANGED
@@ -13,7 +13,6 @@ class GroupRunner
|
|
13
13
|
@max_errors = 0
|
14
14
|
@max_failures = 0
|
15
15
|
@has_brink = false
|
16
|
-
@current_seed = nil
|
17
16
|
end
|
18
17
|
|
19
18
|
def run
|
@@ -107,7 +106,7 @@ class GroupRunner
|
|
107
106
|
@group.send(@test_name)
|
108
107
|
rescue DohTest::Failure => failure
|
109
108
|
@assertions_failed += 1
|
110
|
-
@output.assertion_failed(@group_name, @test_name, failure,
|
109
|
+
@output.assertion_failed(@group_name, @test_name, failure, DohTest.config[:dynamic_seed])
|
111
110
|
rescue => error
|
112
111
|
caught_error(error)
|
113
112
|
end
|
@@ -125,12 +124,12 @@ class GroupRunner
|
|
125
124
|
end
|
126
125
|
|
127
126
|
def generate_new_seed
|
128
|
-
if
|
129
|
-
|
127
|
+
if DohTest.config[:dynamic_seed]
|
128
|
+
DohTest.config[:dynamic_seed] = rand(100000000000)
|
129
|
+
srand(DohTest.config[:dynamic_seed])
|
130
130
|
else
|
131
|
-
|
131
|
+
DohTest.config[:dynamic_seed] = DohTest.config[:seed]
|
132
132
|
end
|
133
|
-
srand(@current_seed)
|
134
133
|
end
|
135
134
|
|
136
135
|
def run_tests
|
@@ -169,7 +168,7 @@ class GroupRunner
|
|
169
168
|
|
170
169
|
def caught_error(error, test_name = nil)
|
171
170
|
@error_count += 1
|
172
|
-
@output.test_error(@group_name, test_name || @test_name, error,
|
171
|
+
@output.test_error(@group_name, test_name || @test_name, error, DohTest.config[:dynamic_seed])
|
173
172
|
end
|
174
173
|
|
175
174
|
def total_problems
|