parallelized_specs 0.3.25 → 0.3.26
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/tasks.rb +12 -7
- data/lib/parallelized_specs.rb +4 -4
- data/parallelized_specs.gemspec +1 -1
- metadata +3 -3
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.26"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
@@ -44,14 +44,19 @@ namespace :parallel do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
desc "run spec in parallel with parallel:spec[num_cpus]"
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
47
|
+
task 'spec', :count, :pattern, :options, :arguments do |t, args|
|
48
|
+
count, pattern = ParallelizedSpecs.parse_rake_args(args)
|
49
|
+
opts = {:count => count, :pattern => pattern, :root => Rails.root, :files => args[:arguments]}
|
50
|
+
exit_result = ParallelizedSpecs.execute_parallel_specs(opts)
|
51
|
+
|
52
|
+
puts "#{exit_result}" >> "/tmp/exit_code.log"
|
53
|
+
puts "going to check for reruns"
|
54
|
+
|
55
|
+
if $? != 0 && FileTest.exist?("#{RAILS_ROOT}/tmp/parallel_log/rspec.failures")
|
56
|
+
ParallelizedSpecs.rerun()
|
57
|
+
else
|
58
|
+
abort "#{exit_result}"
|
51
59
|
end
|
52
60
|
|
53
|
-
desc "reruns all the failed specs in 1 thread"
|
54
|
-
task 'rerun' do
|
55
|
-
ParallelizedSpecs.rerun()
|
56
61
|
end
|
57
62
|
end
|
data/lib/parallelized_specs.rb
CHANGED
data/parallelized_specs.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
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.26"
|
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"]
|
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: 39
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 26
|
10
|
+
version: 0.3.26
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|