Permalink
Browse files

Print out the yard coverage info (including warnings) even when the t…

…ask passes.
  • Loading branch information...
1 parent 3193708 commit c0836b65e583d853b43db35da9e3db00833d7070 @myronmarston committed May 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
@@ -26,10 +26,10 @@ task :default => [:spec, :cucumber]
desc "Ensures we keep up 100% YARD coverage"
task :yard_coverage do
coverage_stats = `yard stats --list-undoc 2>&1`
+ puts coverage_stats
if coverage_stats.include?('100.00% documented')
- puts "Nice work! 100% documentation coverage"
+ puts "\nNice work! 100% documentation coverage"
else
- puts coverage_stats
raise "Documentation coverage is less than 100%"
end
end

0 comments on commit c0836b6

Please sign in to comment.