parallel_tests 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +1 -1
- data/Readme.md +1 -0
- data/lib/parallel_tests/rspec/logger_base.rb +2 -2
- data/lib/parallel_tests/version.rb +1 -1
- data/spec/parallel_tests/rspec/logger_base_spec.rb +35 -0
- metadata +36 -54
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fd5692678ef7dc4c63ac278dffdcdde4290d01db
|
4
|
+
data.tar.gz: 901fe93471c491f6ca75ed3b77b234f5ffa8e3b4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 968eb5b10707481f6e244ea8e57662e6d9caf6a0998333d27c0352f0f1e04b51bb97b4bd2ff12c039a792a3cce29ba605a437bfbcf44b4f582fbc0c76af8afc8
|
7
|
+
data.tar.gz: 93c26b8b81e2c53c3b6bf13ac6f2ebb26b365bcb8a974588c72bf39d957f322f0faaa80431b9ee598aab8ef094bc323bf70fb4bc9d60cdb60602eef4a585b985
|
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
@@ -298,6 +298,7 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
|
|
298
298
|
- [Matt Southerden](https://github.com/mattsoutherden)
|
299
299
|
- [Stanislaw Wozniak](https://github.com/sponte)
|
300
300
|
- [Dmitry Polushkin](https://github.com/dmitry)
|
301
|
+
- [Samer Masry](https://github.com/smasry)
|
301
302
|
|
302
303
|
[Michael Grosser](http://grosser.it)<br/>
|
303
304
|
michael@grosser.it<br/>
|
@@ -32,13 +32,13 @@ class ParallelTests::RSpec::LoggerBase < ParallelTests::RSpec::LoggerBaseBase
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
protected
|
36
|
-
|
37
35
|
#stolen from Rspec
|
38
36
|
def close(*args)
|
39
37
|
@output.close if (IO === @output) & (@output != $stdout)
|
40
38
|
end
|
41
39
|
|
40
|
+
protected
|
41
|
+
|
42
42
|
# do not let multiple processes get in each others way
|
43
43
|
def lock_output
|
44
44
|
if File === @output
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe ParallelTests::RSpec::LoggerBase do
|
4
|
+
before do
|
5
|
+
@temp_file = Tempfile.open('xxx')
|
6
|
+
@logger = ParallelTests::RSpec::LoggerBase.new(@temp_file)
|
7
|
+
end
|
8
|
+
|
9
|
+
after do
|
10
|
+
@temp_file.close
|
11
|
+
end
|
12
|
+
|
13
|
+
describe 'on tests finished' do
|
14
|
+
it 'should respond to close' do
|
15
|
+
expect(@logger).to respond_to(:close)
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'should close output' do
|
19
|
+
@temp_file.should_receive(:close)
|
20
|
+
@logger.close
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'should not close stdout' do
|
24
|
+
@logger = ParallelTests::RSpec::LoggerBase.new($stdout)
|
25
|
+
$stdout.should_not_receive(:close)
|
26
|
+
@logger.close
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'should not close IO instance' do
|
30
|
+
io = double(IO)
|
31
|
+
@logger = ParallelTests::RSpec::LoggerBase.new(io)
|
32
|
+
@logger.close
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,51 +1,42 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 6
|
10
|
-
version: 1.0.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.7
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Michael Grosser
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
prerelease: false
|
11
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: parallel
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
23
20
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
requirements:
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
27
24
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
33
|
-
requirement: *id001
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
34
27
|
description:
|
35
28
|
email: michael@grosser.it
|
36
|
-
executables:
|
29
|
+
executables:
|
37
30
|
- parallel_spinach
|
38
31
|
- parallel_cucumber
|
39
32
|
- parallel_rspec
|
40
33
|
- parallel_test
|
41
34
|
extensions: []
|
42
|
-
|
43
35
|
extra_rdoc_files: []
|
44
|
-
|
45
|
-
|
46
|
-
- .
|
47
|
-
- .
|
48
|
-
- .travis.yml
|
36
|
+
files:
|
37
|
+
- ".gitignore"
|
38
|
+
- ".rspec"
|
39
|
+
- ".travis.yml"
|
49
40
|
- Gemfile
|
50
41
|
- Gemfile.lock
|
51
42
|
- Rakefile
|
@@ -87,6 +78,7 @@ files:
|
|
87
78
|
- spec/parallel_tests/gherkin/runner_behaviour.rb
|
88
79
|
- spec/parallel_tests/grouper_spec.rb
|
89
80
|
- spec/parallel_tests/rspec/failures_logger_spec.rb
|
81
|
+
- spec/parallel_tests/rspec/logger_base_spec.rb
|
90
82
|
- spec/parallel_tests/rspec/runner_spec.rb
|
91
83
|
- spec/parallel_tests/rspec/runtime_logger_spec.rb
|
92
84
|
- spec/parallel_tests/rspec/summary_logger_spec.rb
|
@@ -97,37 +89,27 @@ files:
|
|
97
89
|
- spec/parallel_tests_spec.rb
|
98
90
|
- spec/spec_helper.rb
|
99
91
|
homepage: http://github.com/grosser/parallel_tests
|
100
|
-
licenses:
|
92
|
+
licenses:
|
101
93
|
- MIT
|
94
|
+
metadata: {}
|
102
95
|
post_install_message:
|
103
96
|
rdoc_options: []
|
104
|
-
|
105
|
-
require_paths:
|
97
|
+
require_paths:
|
106
98
|
- lib
|
107
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
-
|
109
|
-
requirements:
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
110
101
|
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
version: "0"
|
116
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
|
-
requirements:
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
119
106
|
- - ">="
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
122
|
-
segments:
|
123
|
-
- 0
|
124
|
-
version: "0"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
125
109
|
requirements: []
|
126
|
-
|
127
110
|
rubyforge_project:
|
128
|
-
rubygems_version:
|
111
|
+
rubygems_version: 2.2.2
|
129
112
|
signing_key:
|
130
|
-
specification_version:
|
113
|
+
specification_version: 4
|
131
114
|
summary: Run Test::Unit / RSpec / Cucumber / Spinach in parallel
|
132
115
|
test_files: []
|
133
|
-
|