LoginSignup
5
5

More than 5 years have passed since last update.

Rails+RSpec+SporkにSimpleCovを導入

Posted at

READMEを読みながらやってみた。

spec/spec_helper.rb

Spork.prefork do
  unless ENV['DRB']
    require 'simplecov'
  end

  # other code ...
end

Spork.each_run do
  if ENV['DRB']
    require 'simplecov'
  end

  # other code ...
end

.simplecov

SimpleCov.start 'rails' do
  add_filter "/spec/"
end
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5