use multiformatter for simplecov to get html cov reports back

This commit is contained in:
Kyle Drake 2015-09-13 02:02:40 -07:00
parent 2dcbbcf529
commit 955e3e86bc
2 changed files with 5 additions and 1 deletions

View file

@ -16,6 +16,7 @@ describe 'signup' do
fill_in 'password', with: @site[:password] fill_in 'password', with: @site[:password]
fill_in 'email', with: @site[:email] fill_in 'email', with: @site[:email]
rescue Capybara::ElementNotFound rescue Capybara::ElementNotFound
puts "Waiting on fill_in #{Time.now - time} seconds"
raise if Time.now - time > 30 raise if Time.now - time > 30
sleep 0.5 sleep 0.5
retry retry

View file

@ -4,7 +4,10 @@ raise 'Forget it.' if ENV['RACK_ENV'] == 'production'
require 'coveralls' require 'coveralls'
require 'simplecov' require 'simplecov'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.coverage_dir File.join('tests', 'coverage') SimpleCov.coverage_dir File.join('tests', 'coverage')
SimpleCov.start do SimpleCov.start do
add_filter "/migrations/" add_filter "/migrations/"