Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Generate code coverage report selectively
Browse files Browse the repository at this point in the history
  • Loading branch information
basiszwo committed Oct 1, 2015
1 parent ff01c6a commit 9f96c71
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .simplecov
@@ -1,5 +1,3 @@
SimpleCov.start :rails

if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
Expand Down
6 changes: 5 additions & 1 deletion features/support/env.rb
Expand Up @@ -33,7 +33,11 @@
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.

require 'simplecov'
if ENV['COVERAGE']
require 'simplecov'
SimpleCov.start 'rails'
end

require 'cucumber/rails'
require 'cucumber/rspec/doubles'
require 'capybara-screenshot/cucumber'
Expand Down
6 changes: 5 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -27,7 +27,11 @@
#++

require 'rubygems'
require 'simplecov'

if ENV['COVERAGE']
require 'simplecov'
SimpleCov.start 'rails'
end

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
Expand Down

0 comments on commit 9f96c71

Please sign in to comment.