Rakefile in ci_reporter-1.4 vs Rakefile in ci_reporter-1.5
- old
+ new
@@ -28,32 +28,37 @@
# Hoe insists on setting task :default => :test
# !@#$ no easy way to empty the default list of prerequisites
Rake::Task['default'].send :instance_variable_set, "@prerequisites", FileList[]
-task :default => :rcov
+# No RCov on JRuby at the moment
+if RUBY_PLATFORM =~ /java/
+ task :default => :spec
+else
+ task :default => :rcov
+end
Spec::Rake::SpecTask.new do |t|
- t.spec_opts ||= []
- t.spec_opts << "--diff" << "unified"
+ t.spec_opts = ["--diff", "unified"]
end
Spec::Rake::SpecTask.new("spec:rcov") do |t|
t.rcov = true
end
# so we don't confuse autotest
RCov::VerifyTask.new(:rcov) do |t|
# Can't get threshold up to 100 until the RSpec < 1.0 compatibility
# code is dropped
- t.threshold = 97
+ t.threshold = 99
t.require_exact_threshold = false
end
task "spec:rcov" do
rm_f "Manifest.txt"
end
task :rcov => "spec:rcov"
task :generate_output do
+ rm_f "acceptance/reports/*.xml"
ENV['CI_REPORTS'] = "acceptance/reports"
begin
`ruby -Ilib acceptance/test_unit_example_test.rb` rescue nil
`ruby -Ilib -S spec --require ci/reporter/rake/rspec_loader --format CI::Reporter::RSpec acceptance/rspec_example_spec.rb` rescue nil
ensure