File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ namespace :test do
4444 if RUBY_VERSION =~ /^1.8/
4545 Rake ::Task [ 'rcov:client' ] . invoke
4646 Rake ::Task [ 'rcov:provider' ] . invoke
47+ Rake ::Task [ 'rcov:activerecord_provider' ] . invoke
4748 else
4849 ENV [ 'COVERAGE' ] = 'true'
4950 Rake ::Task [ 'test:client' ] . invoke
5051 Rake ::Task [ 'test:provider' ] . invoke
52+ Rake ::Task [ 'test:activerecord_provider' ] . invoke
5153 end
5254
5355 system ( "open coverage/index.html" ) if ( PLATFORM [ 'darwin' ] if Kernel . const_defined? :PLATFORM ) || ( RUBY_PLATFORM =~ /darwin/ if Kernel . const_defined? :RUBY_PLATFORM )
@@ -72,6 +74,13 @@ if RUBY_VERSION =~ /^1.8/
7274 t . verbose = true
7375 t . rcov_opts = [ '--aggregate coverage.data' , '--text-summary' ]
7476 end
77+
78+ Rcov ::RcovTask . new ( 'activerecord_provider' ) do |t |
79+ t . libs << [ 'lib' , 'test/activerecord_provider' ]
80+ t . pattern = 'test/activerecord_provider/tc_*.rb'
81+ t . verbose = true
82+ t . rcov_opts = [ '--aggregate coverage.data' , '--text-summary' ]
83+ end
7584 end
7685end
7786
Original file line number Diff line number Diff line change 11require 'rubygems'
2+
3+ if ENV [ 'COVERAGE' ] and RUBY_VERSION =~ /^1.9/
4+ require 'simplecov'
5+ require 'simplecov-rcov'
6+
7+ SimpleCov . formatter = SimpleCov ::Formatter ::RcovFormatter
8+ SimpleCov . start
9+ end
210require 'test/unit'
311require File . dirname ( __FILE__ ) + '/config/connection'
412require File . dirname ( __FILE__ ) + '/helpers/providers'
Original file line number Diff line number Diff line change 1+ if ENV [ 'COVERAGE' ] and RUBY_VERSION =~ /^1.9/
2+ require 'simplecov'
3+ require 'simplecov-rcov'
4+
5+ SimpleCov . formatter = SimpleCov ::Formatter ::RcovFormatter
6+ SimpleCov . start
7+ end
18require 'oai'
29require 'test/unit'
310
You can’t perform that action at this time.
0 commit comments