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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79b00978a9d728c8b75e47969d656cc687a85492
4
- data.tar.gz: 8270d1a0397d555dadf9790cb87ed51e8bc3a463
3
+ metadata.gz: f1b48f4ecffe8fa1d5bb89f269abc3cbf22fe470
4
+ data.tar.gz: ea64305ae2ff5347632ab30f9eac5090471d5c7d
5
5
  SHA512:
6
- metadata.gz: 03c370bd9d0531d63731ed9c0457f4c39ae29c412d2ed8c39354363302ede71b3ebda0aaf6a23e6cbaf5d52f126c0e7a04b4e404bc8b795cc60779bf0617a001
7
- data.tar.gz: d3bdea08a73420a04e34e0842561ef5f5433cd303df50894e4fe609a17b0e210d6a1d216851ddec1568894a9d0aeadf79536dca49643af7888fa02a7316b91da
6
+ metadata.gz: fc66f927d9ea4dc3b61617789bb601dc50f9fee9cfa56f7a12b455e56f8712995756e37f5b052664f70e7ba6281eb51f0ffe5f383ad187719858da5bd671f99d
7
+ data.tar.gz: 1062829bba51c96aa4654e2095eb4f0822c98f725890b687dbccc8ee45a1ebc2e961b094c956a52ff655719e4c0f531b4e7cc1a59166efaaf249e469f0944227
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parallel_tests (1.0.2)
4
+ parallel_tests (1.0.3)
5
5
  parallel
6
6
 
7
7
  GEM
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(self.tests.first, start_time, end_time)
94
+ ParallelTests::Test::RuntimeLogger.log(first_test, start_time, end_time)
94
95
  end
95
96
 
96
97
  @@timing_installed = true
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '1.0.2'
2
+ VERSION = Version = '1.0.3'
3
3
  end
@@ -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.2
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-18 00:00:00.000000000 Z
11
+ date: 2014-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel