Report code coverage to the console and to HTML files
This commit is contained in:
parent
cfa1eecb23
commit
8f0ebc739b
@ -4,7 +4,12 @@ require 'pry'
|
||||
require 'simplecov'
|
||||
require 'simplecov-console'
|
||||
|
||||
SimpleCov.formatter = SimpleCov::Formatter::Console unless ENV['COVERAGE_FORMAT'] == 'html'
|
||||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
|
||||
[
|
||||
SimpleCov::Formatter::HTMLFormatter,
|
||||
SimpleCov::Formatter::Console
|
||||
]
|
||||
)
|
||||
|
||||
unless ENV['COVERAGE'] == 'false'
|
||||
SimpleCov.start do
|
||||
|
Loading…
x
Reference in New Issue
Block a user