ZenTest 4.9.3 → 4.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +7 -0
- data/Rakefile +1 -1
- data/lib/autotest.rb +11 -5
- data/lib/zentest.rb +1 -1
- data/test/test_autotest.rb +30 -0
- metadata +15 -15
- metadata.gz.sig +2 -2
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ Hoe.spec "ZenTest" do
|
|
13
13
|
developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
|
14
14
|
developer 'Eric Hodel', 'drbrain@segment7.net'
|
15
15
|
|
16
|
-
require_rubygems_version [">= 1.8", "< 2.
|
16
|
+
require_rubygems_version [">= 1.8", "< 2.2"]
|
17
17
|
end
|
18
18
|
|
19
19
|
desc "run autotest on itself"
|
data/lib/autotest.rb
CHANGED
@@ -286,7 +286,7 @@ class Autotest
|
|
286
286
|
/\d+ (tests|runs), \d+ assertions, \d+ failures, \d+ errors(, \d+ skips)?/
|
287
287
|
self.extra_class_map = {}
|
288
288
|
self.extra_files = []
|
289
|
-
self.failed_results_re = /^\s
|
289
|
+
self.failed_results_re = /^\s*\d+\) (?:Failure|Error):\n(.*?)(?: [\(\[](.*?)[\)\]])?:$/
|
290
290
|
self.files_to_test = new_hash_of_arrays
|
291
291
|
self.find_order = []
|
292
292
|
self.known_files = nil
|
@@ -728,16 +728,22 @@ class Autotest
|
|
728
728
|
# proc.
|
729
729
|
|
730
730
|
def test_files_for filename
|
731
|
-
result =
|
731
|
+
result = []
|
732
732
|
|
733
|
-
|
733
|
+
@test_mappings.each do |file_re, proc|
|
734
|
+
if filename =~ file_re then
|
735
|
+
result = [proc.call(filename, $~)].
|
736
|
+
flatten.sort.uniq.select { |f| known_files[f] }
|
737
|
+
break unless result.empty?
|
738
|
+
end
|
739
|
+
end
|
734
740
|
|
735
|
-
|
741
|
+
p :test_file_for => [filename, result.first] if result and options[:debug]
|
736
742
|
|
737
743
|
output.puts "No tests matched #{filename}" if
|
738
744
|
(options[:verbose] or $TESTING) and result.empty?
|
739
745
|
|
740
|
-
result
|
746
|
+
return result
|
741
747
|
end
|
742
748
|
|
743
749
|
##
|
data/lib/zentest.rb
CHANGED
data/test/test_autotest.rb
CHANGED
@@ -265,6 +265,8 @@ class TestAutotest < Minitest::Test
|
|
265
265
|
end
|
266
266
|
|
267
267
|
def test_handle_results
|
268
|
+
skip "this is minitest 4 output... needs to work in both"
|
269
|
+
|
268
270
|
@a.files_to_test.clear
|
269
271
|
@files.clear
|
270
272
|
@files[@impl] = Time.at(1)
|
@@ -351,6 +353,34 @@ test_error2(#{@test_class}):
|
|
351
353
|
deny @a.tainted
|
352
354
|
end
|
353
355
|
|
356
|
+
def test_handle_results_minitest5
|
357
|
+
@a.files_to_test.clear
|
358
|
+
@files.clear
|
359
|
+
@files[@impl] = Time.at(1)
|
360
|
+
@files[@test] = Time.at(2)
|
361
|
+
|
362
|
+
@a.find_order = @files.keys.sort
|
363
|
+
|
364
|
+
empty = {}
|
365
|
+
assert_equal empty, @a.files_to_test, "must start empty"
|
366
|
+
|
367
|
+
s2 = "
|
368
|
+
1) Error:
|
369
|
+
#{@test_class}#test_error1:
|
370
|
+
1) Failure:
|
371
|
+
#{@test_class}#test_fail1 [./test/test_autotest.rb:375]:
|
372
|
+
|
373
|
+
12 tests, 18 assertions, 1 failures, 1 errors
|
374
|
+
"
|
375
|
+
|
376
|
+
@a.handle_results(s2)
|
377
|
+
expected = { @test => %w( test_error1 test_fail1 ) }
|
378
|
+
assert_equal expected, @a.files_to_test
|
379
|
+
assert @a.tainted
|
380
|
+
exp = { "tests" => 12, "assertions" => 18, "failures" => 1, "errors" => 1 }
|
381
|
+
assert_equal exp, @a.latest_results
|
382
|
+
end
|
383
|
+
|
354
384
|
def test_hook_overlap_returning_false
|
355
385
|
util_reset_hooks_returning false
|
356
386
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ZenTest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 4.9.
|
9
|
+
- 4
|
10
|
+
version: 4.9.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -17,9 +17,9 @@ bindir: bin
|
|
17
17
|
cert_chain:
|
18
18
|
- |
|
19
19
|
-----BEGIN CERTIFICATE-----
|
20
|
-
|
20
|
+
MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
|
21
21
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
22
|
-
|
22
|
+
GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE
|
23
23
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
24
24
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
25
25
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -29,15 +29,15 @@ cert_chain:
|
|
29
29
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
30
30
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
31
31
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
AQCFZ7JTzoy1gcG4d8A6dmOJy7ygtO5MFpRIz8HuKCF5566nOvpy7aHhDDzFmQuu
|
33
|
+
FX3zDU6ghx5cQIueDhf2SGOncyBmmJRRYawm3wI0o1MeN6LZJ/3cRaOTjSFy6+S6
|
34
|
+
zqDmHBp8fVA2TGJtO0BLNkbGVrBJjh0UPmSoGzWlRhEVnYC33TpDAbNA+u39UrQI
|
35
|
+
ynwhNN7YbnmSR7+JU2cUjBFv2iPBO+TGuWC+9L2zn3NHjuc6tnmSYipA9y8Hv+As
|
36
|
+
Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
|
37
|
+
xx3n58i0lQkBE1EpKE0lFu/y
|
38
38
|
-----END CERTIFICATE-----
|
39
39
|
|
40
|
-
date: 2013-
|
40
|
+
date: 2013-09-21 00:00:00 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: minitest
|
@@ -194,11 +194,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: "1.8"
|
195
195
|
- - <
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
hash:
|
197
|
+
hash: 7
|
198
198
|
segments:
|
199
199
|
- 2
|
200
|
-
-
|
201
|
-
version: "2.
|
200
|
+
- 2
|
201
|
+
version: "2.2"
|
202
202
|
requirements: []
|
203
203
|
|
204
204
|
rubyforge_project: zentest
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
R�*�e,�:����s P�ݠ��TH�x@*.y���A��l�6D�������%)���i�%v�ޅ2dg���UX%3q��䞊�NL��c��
|
2
|
+
=6�kH4�8�}�8��lT��O������4�v�>�;���i�"��^-AYŗ�E�$Fn&�b�o��G������v��L�Άd="��dSFN�]Bـ��i�gNg*��`�ni�Ƭ)���<���X���3:���m���c�\gx:�:�)���nV����
|