Skip to content

Commit

Permalink
Add SimpleCov to generate test reports in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed May 20, 2018
1 parent edd6ebb commit 3a550db
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ PATH
GEM
remote: https://rubygems.org/
specs:
ansi (1.5.0)
ast (2.4.0)
concurrent-ruby (1.0.5)
docile (1.3.0)
hirb (0.7.3)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
json (2.1.0)
minitest (5.10.3)
parallel (1.12.1)
parser (2.5.1.0)
Expand All @@ -27,6 +31,15 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.9.0)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-console (0.4.2)
ansi
hirb
simplecov
simplecov-html (0.10.2)
test-unit (3.2.6)
power_assert
timecop (0.9.1)
Expand All @@ -40,6 +53,8 @@ DEPENDENCIES
minitest
rake
rubocop
simplecov
simplecov-console
test-unit
timecop

Expand Down
2 changes: 2 additions & 0 deletions faker.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Gem::Specification.new do |s|
s.add_development_dependency('minitest')
s.add_development_dependency('rake')
s.add_development_dependency('rubocop')
s.add_development_dependency('simplecov')
s.add_development_dependency('simplecov-console')
s.add_development_dependency('test-unit')
s.add_development_dependency('timecop')
s.required_ruby_version = '>= 2.1'
Expand Down
7 changes: 7 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
require 'simplecov'
require 'simplecov-console'
SimpleCov.formatter = SimpleCov.formatter = SimpleCov::Formatter::Console
SimpleCov.start do
add_filter ['.bundle', 'lib/extensions', 'test']
end

require 'test/unit'
require 'rubygems'
require 'timecop'
Expand Down

0 comments on commit 3a550db

Please sign in to comment.