parallel_tests 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/parallel_tests/test/runner.rb +4 -2
- data/lib/parallel_tests/version.rb +1 -1
- data/spec/integration_spec.rb +16 -0
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -125,8 +125,10 @@ module ParallelTests
|
|
125
125
|
begin
|
126
126
|
read = input.readpartial(1000000) # read whatever chunk we can get
|
127
127
|
results[index] << read
|
128
|
-
|
129
|
-
|
128
|
+
if index == 1 || !silence
|
129
|
+
output.print read
|
130
|
+
output.flush
|
131
|
+
end
|
130
132
|
rescue EOFError
|
131
133
|
raise if index == 0 # we only care about the end of stdout
|
132
134
|
end
|
data/spec/integration_spec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
#encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
describe 'CLI' do
|
@@ -61,6 +63,13 @@ describe 'CLI' do
|
|
61
63
|
result.scan(/Took \d+\.\d+ seconds/).size.should == 1 # parallel summary
|
62
64
|
end
|
63
65
|
|
66
|
+
it "runs tests which outputs accented characters" do
|
67
|
+
write "spec/xxx_spec.rb", "#encoding: utf-8\ndescribe('it'){it('should'){puts 'Byłem tu'}}"
|
68
|
+
result = run_tests "spec", :type => 'rspec'
|
69
|
+
# test ran and gave their puts
|
70
|
+
result.should include('Byłem tu')
|
71
|
+
end
|
72
|
+
|
64
73
|
it "does not run any tests if there are none" do
|
65
74
|
write 'spec/xxx_spec.rb', '1'
|
66
75
|
result = run_tests "spec", :type => 'rspec'
|
@@ -223,6 +232,13 @@ describe 'CLI' do
|
|
223
232
|
"
|
224
233
|
end
|
225
234
|
|
235
|
+
it "runs tests which outputs accented characters" do
|
236
|
+
write "features/good1.feature", "Feature: xxx\n Scenario: xxx\n Given I print accented characters"
|
237
|
+
write "features/steps/a.rb", "#encoding: utf-8\nGiven('I print accented characters'){ puts \"I tu też\" }"
|
238
|
+
result = run_tests "features", :type => "cucumber", :add => '--pattern good'
|
239
|
+
result.should include('I tu też')
|
240
|
+
end
|
241
|
+
|
226
242
|
it "passes TEST_ENV_NUMBER when running with pattern (issue #86)" do
|
227
243
|
write "features/good1.feature", "Feature: xxx\n Scenario: xxx\n Given I print TEST_ENV_NUMBER"
|
228
244
|
write "features/good2.feature", "Feature: xxx\n Scenario: xxx\n Given I print TEST_ENV_NUMBER"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04
|
12
|
+
date: 2013-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parallel
|
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
segments:
|
98
98
|
- 0
|
99
|
-
hash:
|
99
|
+
hash: 1625786705072895327
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
none: false
|
102
102
|
requirements:
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
segments:
|
107
107
|
- 0
|
108
|
-
hash:
|
108
|
+
hash: 1625786705072895327
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
111
|
rubygems_version: 1.8.25
|