Title: [1048] trunk/rcov4jr/Rakefile.rb: new rake task for run comparisons
- Revision
- 1048
- Author
- hooligan495
- Date
- 2008-07-17 16:49:01 -0400 (Thu, 17 Jul 2008)
Log Message
new rake task for run comparisons
Modified Paths
Diff
Modified: trunk/rcov4jr/Rakefile.rb (1047 => 1048)
--- trunk/rcov4jr/Rakefile.rb 2008-07-11 03:03:52 UTC (rev 1047)
+++ trunk/rcov4jr/Rakefile.rb 2008-07-17 20:49:01 UTC (rev 1048)
@@ -19,7 +19,7 @@
rescue LoadError
end
- unless classpath
+ if classpath.empty?
classpath = FileList["#{ENV['JRUBY_HOME']}/lib/*.jar"].join(File::PATH_SEPARATOR)
end
@@ -79,10 +79,17 @@
desc "Run the unit tests with rcovrt."
Rake::TestTask.new(:test_rcov4jr => ["lib/rcovrt.jar"]) do |t|
t.libs << "lib"
- t.test_files = FileList['test/test*.rb']
+ t.test_files = FileList['test/test_*.rb']
t.verbose = true
end
+desc "Run the unit tests with no rcovrt."
+Rake::TestTask.new(:test_no_rcovrt => ["lib/rcovrt.jar"]) do |t|
+ t.libs << "lib"
+ t.test_files = FileList['test/turn_off_rcovrt.rb','test/test_*.rb']
+ t.verbose = true
+end
+
desc "Run specs for rcov4jr"
Spec::Rake::SpecTask.new( :specs ) do | t |
t.libs << "lib"
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel