Skip to content

Commit

Permalink
[#151817717] - Setup simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdolendo committed Feb 26, 2019
1 parent 519f701 commit efda51a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ npm-debug.log

# Using yarn rather than npm
package-lock.json
coverage
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ group :development, :test do
gem 'awesome_print'
gem 'vcr'
gem 'rails-controller-testing'
gem 'simplecov', require: false
end

group :development do
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ GEM
responders
warden (~> 1.2.3)
diff-lcs (1.3)
docile (1.3.1)
dotenv (2.2.1)
dotenv-rails (2.2.1)
dotenv (= 2.2.1)
Expand Down Expand Up @@ -266,6 +267,11 @@ GEM
childprocess (~> 0.5)
rubyzip (~> 1.0)
sexp_processor (4.11.0)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
slim (3.0.8)
temple (>= 0.7.6, < 0.9)
tilt (>= 1.3.3, < 2.1)
Expand Down Expand Up @@ -355,6 +361,7 @@ DEPENDENCIES
rubocop
sass-rails (~> 5.0)
selenium-webdriver
simplecov
slim-rails (~> 3.1)
spring
spring-watcher-listen (~> 2.0.0)
Expand Down
5 changes: 5 additions & 0 deletions bin/rails
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env ruby
if ENV['RAILS_ENV'] == 'test'
require 'simplecov'
SimpleCov.start 'rails'
puts "required simplecov"
end
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
Expand Down
2 changes: 2 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

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

0 comments on commit efda51a

Please sign in to comment.