Skip to content

Commit 95b0462

Browse files
committed
remove rcov/simple_cov
Had probably not been used in years (not mentioned in README), was not producing output useful to citizens of 2019 (produced HTML reports, one per source file, to be reviewed manually). Would have required changes to keep working under "single Rake::TestTask" setup. Rather than fix, remove, coverage reports can be added back later in a more modern way if desired.
1 parent 1ba66eb commit 95b0462

File tree

5 files changed

+0
-72
lines changed

5 files changed

+0
-72
lines changed

Gemfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ group :test do
1212
gem 'yard'
1313
gem 'redcarpet', :platform => :ruby # For fast, Github-like Markdown
1414
gem 'kramdown', :platform => :jruby # For Markdown without a C compiler
15-
gem 'rcov', '~> 0.9', :platform => [:ruby_18, :jruby]
1615
gem 'test-unit'
17-
gem 'simplecov', :platform => :ruby_19
18-
gem 'simplecov-rcov', :platform => :ruby_19
1916
gem 'sqlite3', :platform => [:ruby, :mswin]
2017
end

Rakefile

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -49,53 +49,6 @@ namespace :test do
4949
#t.verbose = true
5050
t.warning = false
5151
end
52-
53-
desc 'Measures test coverage'
54-
# borrowed from here: http://clarkware.com/cgi/blosxom/2007/01/05#RcovRakeTask
55-
task :coverage do
56-
rm_f "coverage"
57-
rm_f "coverage.data"
58-
if RUBY_VERSION =~ /^1.8/
59-
Rake::Task['rcov:client'].invoke
60-
Rake::Task['rcov:provider'].invoke
61-
Rake::Task['rcov:activerecord_provider'].invoke
62-
else
63-
ENV['COVERAGE'] = 'true'
64-
Rake::Task['test:client'].invoke
65-
Rake::Task['test:provider'].invoke
66-
Rake::Task['test:activerecord_provider'].invoke
67-
end
68-
69-
system("open coverage/index.html") if (PLATFORM['darwin'] if Kernel.const_defined? :PLATFORM) || (RUBY_PLATFORM =~ /darwin/ if Kernel.const_defined? :RUBY_PLATFORM)
70-
end
71-
72-
end
73-
74-
if RUBY_VERSION =~ /^1.8/
75-
require 'rcov/rcovtask'
76-
namespace :rcov do
77-
Rcov::RcovTask.new do |t|
78-
t.name = 'client'
79-
t.libs << ['lib', 'test/client']
80-
t.pattern = 'test/client/tc_*.rb'
81-
t.verbose = true
82-
t.rcov_opts = ['--aggregate coverage.data', '--text-summary']
83-
end
84-
85-
Rcov::RcovTask.new('provider') do |t|
86-
t.libs << ['lib', 'test/provider']
87-
t.pattern = 'test/provider/tc_*.rb'
88-
t.verbose = true
89-
t.rcov_opts = ['--aggregate coverage.data', '--text-summary']
90-
end
91-
92-
Rcov::RcovTask.new('activerecord_provider') do |t|
93-
t.libs << ['lib', 'test/activerecord_provider']
94-
t.pattern = 'test/activerecord_provider/tc_*.rb'
95-
t.verbose = true
96-
t.rcov_opts = ['--aggregate coverage.data', '--text-summary']
97-
end
98-
end
9952
end
10053

10154
YARD::Rake::YardocTask.new do |t|

test/activerecord_provider/test_helper_ar_provider.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
require 'rubygems'
22

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
103
require 'test/unit'
114
require File.dirname(__FILE__) + '/config/connection'
125
require File.dirname(__FILE__) + '/helpers/providers'

test/client/test_helper_client.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
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
8-
91
require 'oai'
102
require 'test/unit'
113

test/provider/test_helper_provider.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
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
81
require 'oai'
92
require 'test/unit'
103

0 commit comments

Comments
 (0)