autotest 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/autotest.gemspec +2 -2
- data/bin/autotest +1 -0
- data/lib/autotest.rb +11 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.4.
|
1
|
+
4.4.1
|
data/autotest.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{autotest}
|
8
|
-
s.version = "4.4.
|
8
|
+
s.version = "4.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Davis"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-02}
|
13
13
|
s.executables = ["autotest", "unit_diff"]
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.markdown"
|
data/bin/autotest
CHANGED
@@ -11,6 +11,7 @@ Usage:
|
|
11
11
|
autotest [options]
|
12
12
|
BANNER
|
13
13
|
opts.on("-f", "--fast-start","Do not run full tests at start") { options[:no_full_after_start] = true }
|
14
|
+
opts.on("-p", "--parallel","Run tests in parallel (experimental) -- gem install parallel_tests)") { options[:parallel] = true; require 'parallel_tests' }
|
14
15
|
opts.on("-c", "--no-full-after-failed","Do not run full tests after failed test passed") { options[:no_full_after_failed] = true }
|
15
16
|
opts.on("-v", "--verbose","Be verbose. Prints files that autotest doesn't know how to map to tests") { options[:verbose] = true }
|
16
17
|
opts.on("-q", "--quiet","Be quiet.") { options[:quiet] = true }
|
data/lib/autotest.rb
CHANGED
@@ -489,8 +489,12 @@ class Autotest
|
|
489
489
|
|
490
490
|
unless full.empty? then
|
491
491
|
classes = full.map {|k,v| k}.flatten.uniq
|
492
|
-
classes.
|
493
|
-
|
492
|
+
if options[:parallel] and classes.size > 1
|
493
|
+
cmds << "parallel_test #{escape_filenames(classes).join(' ')}"
|
494
|
+
else
|
495
|
+
classes.unshift testlib
|
496
|
+
cmds << "#{base_cmd} -e \"[#{escape_filenames(classes).join(', ')}].each { |f| require f }\" | #{unit_diff}"
|
497
|
+
end
|
494
498
|
end
|
495
499
|
|
496
500
|
partial.each do |klass, methods|
|
@@ -498,7 +502,11 @@ class Autotest
|
|
498
502
|
cmds << "#{base_cmd} #{klass} -n \"/^(#{regexp})$/\" | #{unit_diff}"
|
499
503
|
end
|
500
504
|
|
501
|
-
|
505
|
+
cmds.join("#{SEP} ")
|
506
|
+
end
|
507
|
+
|
508
|
+
def escape_filenames(classes)
|
509
|
+
classes.map{|klass| "'#{klass}'"}
|
502
510
|
end
|
503
511
|
|
504
512
|
def new_hash_of_arrays
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 4
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 4.4.
|
8
|
+
- 1
|
9
|
+
version: 4.4.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ryan Davis
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-02 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|