1 require "ci/reporter/rake/minitest"
3 # Compatibility "rcov" task
4 # This task moves the simplecov-rcov files into the parent "coverage"
5 # directory. This more or less matches what happens when using the rcov gem
6 # on Ruby 1.8. This compatibility task allows us to use the same Jenkins
7 # configuration on Ruby 1.8 and Ruby > 1.9.
8 task :rcov => 'test:micros' do
9 puts "Moving simplecov-rcov report to " + File.expand_path( "#{File.dirname(__FILE__)}/coverage" )
10 FileUtils.mv("coverage/rcov", ".", :force => true)
11 FileUtils.mv("coverage", "simplecov-coverage", :force => true)
12 FileUtils.mv("rcov", "coverage", :force => true)
13 FileUtils.mv("simplecov-coverage", "coverage/simplecov", :force => true)
16 load File.expand_path("../../Rakefile", __FILE__)