Skip to content

Commit

Permalink
Revert "Disable COVERAGE because of troubles when requiring modules"
Browse files Browse the repository at this point in the history
This reverts commit 9619e06.
  • Loading branch information
mvidner committed Feb 11, 2016
1 parent 19ab829 commit 1e3910d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/test_helper.rb
Expand Up @@ -6,7 +6,17 @@
require "fileutils"

if ENV["COVERAGE"]
STDERR.puts "COVERAGE is disabled because when requiring some modules (like AutoinstPartition) "\
"errors are raised in other YaST components."
require "simplecov"
SimpleCov.start
# for coverage we need to load all ruby files
Dir["#{root_location}/library/*/src/{module,lib}/**/*.rb"].each { |f| require_relative f }
# use coveralls for on-line code coverage reporting at Travis CI
if ENV["TRAVIS"]
require "coveralls"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
end
end

0 comments on commit 1e3910d

Please sign in to comment.