Permalink
Browse files

Separate rake task for coverage report

  • Loading branch information...
1 parent 02d6537 commit d90b24ff72901644629b2b5f1d7e83f48a916b84 @sebreh sebreh committed Jan 14, 2014
Showing with 14 additions and 3 deletions.
  1. +1 −0 .travis.yml
  2. +11 −3 Rakefile
  3. +2 −0 Scripts/coverage-report
View
@@ -5,6 +5,7 @@ branches:
- 2.0-develop
script:
- rake test
+ - rake test:coverage
rvm:
- 1.9.3
gemfile:
View
@@ -4,9 +4,17 @@ verbose(false)
SCRIPTS = './Scripts'
desc "Run the PodioKit unit test suite"
-task :test do
- sh "#{SCRIPTS}/run-tests"
- sh "#{SCRIPTS}/coverage-report"
+task :test => 'test:run'
+
+namespace :test do
+ task :run do
+ sh "#{SCRIPTS}/run-tests"
+ end
+
+ desc "Generate a coverage report from the last test run"
+ task :coverage do
+ sh "#{SCRIPTS}/coverage-report"
+ end
end
namespace :docs do
View
@@ -34,6 +34,8 @@ def copy_coverage_files(search_dir, reports_dir)
next if name.include?('Test')
new_path = File.join(reports_dir, name)
+ puts "Copying report #{name}..."
+
FileUtils.copy(path, new_path)
end

0 comments on commit d90b24f

Please sign in to comment.