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

Exclude /spec/ from code coverage.

Weirdly, on coveralls.io, only Rubinius (rbx-19mode) shows a 1%
lack in coverage due to a line in docile_spec.rb. This should
ensure that the spec files are never measured for code coverage.
This commit is contained in:
Marc Siegel 2013-07-07 19:09:04 -04:00
parent 2f6367e4e6
commit f4ae46b326

View file

@ -9,7 +9,9 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter Coveralls::SimpleCov::Formatter
] ]
SimpleCov.start SimpleCov.start do
add_filter "/spec/"
end
test_dir = File.dirname(__FILE__) test_dir = File.dirname(__FILE__)
$LOAD_PATH.unshift test_dir unless $LOAD_PATH.include?(test_dir) $LOAD_PATH.unshift test_dir unless $LOAD_PATH.include?(test_dir)