Skip to content

Commit

Permalink
Add SimpleCov start
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed May 16, 2018
1 parent 8987b68 commit 6422926
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
repo_token: YysDKPzbssfETbQG7t2zEQOxPraO4Or1b
repo_token: MxDaWJUGJCV079sjDwafgk1pmrE0K8zI2
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
pkg/*

# Ignore Bundle folder
.bundle/*

# Ignore Coveralls files
.coveralls/*
coverage/*

# Ignore Vim backup files.
*~
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ PLATFORMS
ruby

DEPENDENCIES
coveralls
coveralls (>= 0.8.21)
faker!
minitest
rake
Expand Down
2 changes: 1 addition & 1 deletion faker.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.license = 'MIT'

s.add_runtime_dependency('i18n', '>= 0.7')
s.add_development_dependency('coveralls')
s.add_development_dependency('coveralls', '>= 0.8.21')
s.add_development_dependency('minitest')
s.add_development_dependency('rake')
s.add_development_dependency('rubocop')
Expand Down
11 changes: 11 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
require 'coveralls'
Coveralls.wear!

begin
require 'simplecov'
SimpleCov.configure do
add_filter '/test/'
add_filter '/lib/minitest/'
end
SimpleCov.start
rescue LoadError
puts 'Coverage disabled, enable by installing simplecov'
end

# configure I18n
locales_path = File.expand_path(File.dirname(__FILE__) + '../lib/locales')
I18n.available_locales = Dir[locales_path + '/*'].map do |file|
Expand Down

0 comments on commit 6422926

Please sign in to comment.