Skip to content

Commit

Permalink
Use SimpleCov to print code coverage after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thorner committed Sep 9, 2020
1 parent ed56925 commit dfa4760
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
spec/examples.txt
coverage
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ group :test do
gem 'rack-test', '1.1.0'
gem 'rspec', '~> 3.9.0'
gem 'pry'
gem 'simplecov'
end
8 changes: 7 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ GEM
concurrent-ruby (1.1.7)
database_cleaner (1.8.5)
diff-lcs (1.3)
docile (1.3.2)
erubis (2.7.0)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
Expand Down Expand Up @@ -84,6 +85,10 @@ GEM
rspec-support (3.9.0)
sentry-raven (3.0.4)
faraday (>= 1.0)
simplecov (0.19.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)
statsd-ruby (1.4.0)
thread_safe (0.3.6)
tzinfo (1.2.7)
Expand All @@ -110,6 +115,7 @@ DEPENDENCIES
rack-test (= 1.1.0)
rake (= 13.0.1)
rspec (~> 3.9.0)
simplecov

BUNDLED WITH
1.17.1
1.17.3
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'simplecov'
SimpleCov.start

# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause
Expand Down

0 comments on commit dfa4760

Please sign in to comment.