1
0
Fork 0
mirror of https://github.com/ms-ati/docile synced 2023-03-27 23:21:52 -04:00

Use SimpleCov in addition to publishing to Coveralls.io

This commit is contained in:
Marc Siegel 2013-07-05 15:46:29 -04:00
parent e5aa68bef2
commit a573b7aab5

View file

@ -1,8 +1,15 @@
require 'rubygems'
require 'rspec'
require 'singleton'
require 'simplecov'
require 'coveralls'
Coveralls.wear!
# Both local SimpleCov and publish to Coveralls.io
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start
test_dir = File.dirname(__FILE__)
$LOAD_PATH.unshift test_dir unless $LOAD_PATH.include?(test_dir)