parallelized_specs 0.3.57 → 0.3.58
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/parallelized_specs/spec_error_logger.rb +12 -2
- data/lib/parallelized_specs.rb +1 -0
- data/parallelized_specs.gemspec +2 -2
- metadata +4 -4
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ begin
|
|
12
12
|
gem.email = "jake@instructure.com"
|
13
13
|
gem.homepage = "http://github.com/jakesorce/#{gem.name}"
|
14
14
|
gem.authors = "Jake Sorce, Bryan Madsen, Shawn Meredith"
|
15
|
-
gem.version = "0.3.
|
15
|
+
gem.version = "0.3.58"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
@@ -9,6 +9,16 @@ class ParallelizedSpecs::SpecErrorLogger < ParallelizedSpecs::SpecLoggerBase
|
|
9
9
|
@failed_examples = []
|
10
10
|
end
|
11
11
|
|
12
|
+
def start(example_count)
|
13
|
+
@example_count = example_count
|
14
|
+
env_test_number = ENV['TEST_ENV_NUMBER']
|
15
|
+
env_test_number = 1 if ENV['TEST_ENV_NUMBER'].blank?
|
16
|
+
puts "Thread #{env_test_number.to_s} has #{@example_count} specs"
|
17
|
+
File.open("tmp/parallel_log/total_specs.txt", 'a+') {|f| f.puts(@example_count)}
|
18
|
+
super
|
19
|
+
end
|
20
|
+
|
21
|
+
|
12
22
|
def example_passed(example)
|
13
23
|
@passed_examples << example
|
14
24
|
end
|
@@ -28,13 +38,13 @@ class ParallelizedSpecs::SpecErrorLogger < ParallelizedSpecs::SpecLoggerBase
|
|
28
38
|
@output.puts ""
|
29
39
|
@output.puts ""
|
30
40
|
@output.puts "FOR TEST EXECUTOR #{env_test_number}: #{@failed_examples.size} failed, #{@passed_examples.size} passed:"
|
31
|
-
@failed_examples.each.with_index do |
|
41
|
+
@failed_examples.each.with_index do |failure, i|
|
32
42
|
@output.puts ""
|
33
43
|
@output.puts "#{ i + 1 })"
|
34
44
|
@output.puts failure.header
|
35
45
|
unless failure.exception.nil?
|
36
46
|
@output.puts failure.exception.to_s
|
37
|
-
failure.exception.backtrace.each do |
|
47
|
+
failure.exception.backtrace.each do |caller|
|
38
48
|
@output.puts caller
|
39
49
|
end
|
40
50
|
end
|
data/lib/parallelized_specs.rb
CHANGED
data/parallelized_specs.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "parallelized_specs"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.58"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jake Sorce, Bryan Madsen, Shawn Meredith"]
|
12
|
-
s.date = "2012-12-
|
12
|
+
s.date = "2012-12-11"
|
13
13
|
s.email = "jake@instructure.com"
|
14
14
|
s.files = [
|
15
15
|
"Gemfile",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallelized_specs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 103
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 58
|
10
|
+
version: 0.3.58
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-12-
|
18
|
+
date: 2012-12-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: parallel
|