diff --git a/tasks/spec.rake b/tasks/spec.rake index 39020fa7cc..8565bf8f29 100644 --- a/tasks/spec.rake +++ b/tasks/spec.rake @@ -10,5 +10,20 @@ begin end end task :spec => "spec:plugins:redmine_costs" + + begin + require 'ci/reporter/rake/rspec' # use this if you're using RSpec + require 'ci/reporter/rake/test_unit' # use this if you're using Test::Unit + task :"spec:plugins:redmine_costs:ci" => ["ci:setup:rspec", "spec:plugins:redmine_costs"] + rescue LoadError + puts <<-EOS + Missing the CI Reporter gem. This is not fatal. + If you want XML output for the CI, execute + + gem install ci_reporter + + EOS + end + rescue LoadError end \ No newline at end of file