Skip to content

Commit

Permalink
Always print code coverage after running tests
Browse files Browse the repository at this point in the history
Note that the RCov formatter is optional, and it's still possible
to see a web page of the detailed code coverage.
  • Loading branch information
Ben Thorner committed Sep 21, 2020
1 parent d67db77 commit 686d0d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require File.expand_path("config/application", __dir__)

Rails.application.load_tasks

task default: %i[spec lint]
task default: %i[lint spec]

if defined?(RSpec)
RSpec::Core::RakeTask.new(:validate) do |t|
Expand Down
5 changes: 2 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
require "simplecov"
require "simplecov-rcov"
SimpleCov.start "rails"

require "capybara/rspec"
require "factory_bot_rails"
require "webmock/rspec"
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start "rails"

# This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
Expand Down

0 comments on commit 686d0d6

Please sign in to comment.