parallel_tests 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/Readme.md +1 -0
- data/lib/parallel_tests/test/runtime_logger.rb +2 -1
- data/lib/parallel_tests/version.rb +1 -1
- data/spec/parallel_tests/test/runtime_logger_spec.rb +22 -0
- 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: f1b48f4ecffe8fa1d5bb89f269abc3cbf22fe470
|
4
|
+
data.tar.gz: ea64305ae2ff5347632ab30f9eac5090471d5c7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc66f927d9ea4dc3b61617789bb601dc50f9fee9cfa56f7a12b455e56f8712995756e37f5b052664f70e7ba6281eb51f0ffe5f383ad187719858da5bd671f99d
|
7
|
+
data.tar.gz: 1062829bba51c96aa4654e2095eb4f0822c98f725890b687dbccc8ee45a1ebc2e961b094c956a52ff655719e4c0f531b4e7cc1a59166efaaf249e469f0944227
|
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
@@ -297,6 +297,7 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
|
|
297
297
|
- [seichner](https://github.com/seichner)
|
298
298
|
- [Matt Southerden](https://github.com/mattsoutherden)
|
299
299
|
- [Stanislaw Wozniak](https://github.com/sponte)
|
300
|
+
- [Dmitry Polushkin](https://github.com/dmitry)
|
300
301
|
|
301
302
|
[Michael Grosser](http://grosser.it)<br/>
|
302
303
|
michael@grosser.it<br/>
|
@@ -87,10 +87,11 @@ class ::Test::Unit::TestSuite
|
|
87
87
|
alias :run_without_timing :run unless defined? @@timing_installed
|
88
88
|
|
89
89
|
def run(result, &progress_block)
|
90
|
+
first_test = self.tests.first
|
90
91
|
start_time = ParallelTests.now
|
91
92
|
run_without_timing(result, &progress_block)
|
92
93
|
end_time = ParallelTests.now
|
93
|
-
ParallelTests::Test::RuntimeLogger.log(
|
94
|
+
ParallelTests::Test::RuntimeLogger.log(first_test, start_time, end_time)
|
94
95
|
end
|
95
96
|
|
96
97
|
@@timing_installed = true
|
@@ -87,4 +87,26 @@ describe ParallelTests::Test::RuntimeLogger do
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
90
|
+
|
91
|
+
describe '::Test::Unit::TestSuite' do
|
92
|
+
it 'passes correct parameters to log' do
|
93
|
+
require 'test/unit'
|
94
|
+
require 'test/unit/ui/xml/testrunner'
|
95
|
+
|
96
|
+
class FakeUnitTest < Test::Unit::TestCase
|
97
|
+
def test_fake
|
98
|
+
assert true
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
ParallelTests::Test::RuntimeLogger.
|
103
|
+
should_receive(:log).
|
104
|
+
with(kind_of(FakeUnitTest), kind_of(Time), kind_of(Time))
|
105
|
+
|
106
|
+
my_tests = Test::Unit::TestSuite.new
|
107
|
+
my_tests << FakeUnitTest.new('test_fake')
|
108
|
+
output = StringIO.new
|
109
|
+
Test::Unit::UI::XML::TestRunner.run(my_tests, :output => output)
|
110
|
+
end
|
111
|
+
end
|
90
112
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|