Geminstaller C0 Coverage Information - RCov

test_suites/test_all.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
test_suites/test_all.rb 38 26
100.00%
100.00%

Key

Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.

Coverage Details

1 require File.expand_path("#{File.dirname(__FILE__)}/../spec/helper/test_gem_home")
2 GemInstaller::TestGemHome.install_rubygems
3 
4 print "\nRunning all GemInstaller Tests, ENV['RUBYGEMS_VERSION'] == '#{ENV['RUBYGEMS_VERSION']}', Gem::RubyGemsVersion == '#{Gem::RubyGemsVersion}'\n\n"
5 
6 specdir = File.expand_path("#{File.dirname(__FILE__)}/../spec")
7 require File.expand_path("#{specdir}/helper/spec_helper")
8 
9 spec_files = Dir.glob("#{specdir}/**/*_spec.rb")
10 
11 # put test_gem_home_spec first so we only have to perform the install once
12 test_gem_home_path = Dir.glob("#{specdir}/functional/aaa_test_gem_home_spec.rb")[0]
13 spec_files.delete(test_gem_home_path)
14 spec_files.unshift(test_gem_home_path)
15 spec_files.uniq
16 
17 args = spec_files
18 args << "--color"
19 args << "--format"
20 args << "specdoc"
21 args << "--diff"
22 args << "unified"
23 
24 # append generated args to ARGV.  THis may break if incompatible args are specified, 
25 # but I don't know a better way to invoke Rspec 1.1.1 programatically and check the return value
26 ARGV.concat(args)
27 
28 success = false
29 begin
30   require 'spec'
31   success = ::Spec::Runner::CommandLine.run
32 ensure
33   GemInstaller::TestGemHome.reset
34 end
35 # not sure what Spec::Runner::CommandLine.run can return, but fail if it's not boolean as expected
36 raise "unexpected non-boolean return value from Spec::Runner::CommandLine.run(rspec_options)" unless success == true || success == false
37 
38 raise "Specs failed" unless success

Generated on Mon May 10 23:40:29 -0700 2010 with rcov 0.9.8