Skip to content

Commit 946823f

Browse files
committed
try moving simplecov init to rakefile
1 parent 21b6422 commit 946823f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ namespace :docs do
128128
end
129129

130130
task :all_tests do
131+
if ENV["MEASURE_COVERAGE"]
132+
SimpleCov.start do
133+
command_name "RSpec-rails#{Rails::VERSION::STRING}-ruby#{RUBY_VERSION}"
134+
135+
formatter SimpleCov::Formatter::Console
136+
end
137+
end
138+
131139
Rake::Task["test"].invoke
132140
Rake::Task["engine_test"].invoke
133141
Rake::Task["spec"].invoke

spec/spec_helper.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
require "simplecov-console"
55
require "rails/version"
66

7-
if ENV["MEASURE_COVERAGE"]
8-
SimpleCov.start do
9-
command_name "RSpec-rails#{Rails::VERSION::STRING}-ruby#{RUBY_VERSION}"
10-
11-
formatter SimpleCov::Formatter::Console
12-
end
13-
end
14-
157
require "bundler/setup"
168

179
# Configure Rails Environment

0 commit comments

Comments
 (0)