Skip to content

Commit

Permalink
Fixed coverage setup: fix path, filter tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Feb 11, 2016
1 parent 1e3910d commit 094530d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,6 +13,7 @@ config.sub
configure
configure.ac
configure.in
/coverage/
depcomp
install-sh
libtool
Expand Down
7 changes: 5 additions & 2 deletions test/test_helper.rb
Expand Up @@ -7,9 +7,12 @@

if ENV["COVERAGE"]
require "simplecov"
SimpleCov.start
SimpleCov.start do
add_filter "/test/"
end
# for coverage we need to load all ruby files
Dir["#{root_location}/library/*/src/{module,lib}/**/*.rb"].each { |f| require_relative f }
Dir["#{root_location}/src/{include,lib,modules}/**/*.rb"]
.each { |f| require_relative f }
# use coveralls for on-line code coverage reporting at Travis CI
if ENV["TRAVIS"]
require "coveralls"
Expand Down

0 comments on commit 094530d

Please sign in to comment.