Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Separate rake task for coverage report

  • Loading branch information...
commit d90b24ff72901644629b2b5f1d7e83f48a916b84 1 parent 02d6537
@sebreh sebreh authored
Showing with 14 additions and 3 deletions.
  1. +1 −0  .travis.yml
  2. +11 −3 Rakefile
  3. +2 −0  Scripts/coverage-report
View
1  .travis.yml
@@ -5,6 +5,7 @@ branches:
- 2.0-develop
script:
- rake test
+ - rake test:coverage
rvm:
- 1.9.3
gemfile:
View
14 Rakefile
@@ -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
2  Scripts/coverage-report
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.