Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Fix rcov for unit tests

Erik Hatcher25d727100e18
diff --git a/client/ruby/solrb/Rakefile b/client/ruby/solrb/Rakefile
index 1e35254abc1..5fe8175c88d 100644
--- a/client/ruby/solrb/Rakefile
+++ b/client/ruby/solrb/Rakefile
@@ -102,15 +102,13 @@ task :test do
raise "test failures" if got_error
end
-# TODO: fix this so it works, it is not happy with connection_test.rb for some reason
-# borrowed from here: http://clarkware.com/cgi/blosxom/2007/01/05#RcovRakeTask
namespace :test do
desc 'Measures test coverage'
+ # borrowed from here: http://clarkware.com/cgi/blosxom/2007/01/05#RcovRakeTask
task :coverage do
rm_f "coverage"
- rm_f "coverage.data"
- system("rcov --text-summary -Ilib test/unit/*_test.rb")
+ system("rcov --text-summary -Ilib:test/unit test/unit/*_test.rb")
system("open coverage/index.html") if PLATFORM['darwin']
end
-end
\ No newline at end of file
+end