mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
use coveralls simplecov formatter
This commit is contained in:
parent
704a992f11
commit
2dcbbcf529
1 changed files with 8 additions and 11 deletions
|
@ -1,19 +1,16 @@
|
|||
ENV['RACK_ENV'] = 'test'
|
||||
raise 'Forget it.' if ENV['RACK_ENV'] == 'production'
|
||||
|
||||
if ENV['TRAVIS']
|
||||
require 'coveralls'
|
||||
Coveralls.wear!
|
||||
else
|
||||
|
||||
require 'simplecov'
|
||||
|
||||
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
||||
SimpleCov.coverage_dir File.join('tests', 'coverage')
|
||||
SimpleCov.start do
|
||||
add_filter "/migrations/"
|
||||
end
|
||||
|
||||
SimpleCov.command_name 'minitest'
|
||||
end
|
||||
|
||||
require 'rack_session_access'
|
||||
require './environment'
|
||||
|
|
Loading…
Add table
Reference in a new issue