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:
parent
2f6367e4e6
commit
f4ae46b326
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue