Skip to content

Commit

Permalink
Merge 6efa5ef into 03f0445
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 12, 2017
2 parents 03f0445 + 6efa5ef commit 9270cba
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ YaST - The AutoYaST Framework

[![Travis Build](https://travis-ci.org/yast/yast-autoinstallation.svg?branch=master)](https://travis-ci.org/yast/yast-autoinstallation)
[![Jenkins Build](http://img.shields.io/jenkins/s/https/ci.opensuse.org/yast-autoinstallation-master.svg)](https://ci.opensuse.org/view/Yast/job/yast-autoinstallation-master/)
[![Coverage Status](https://coveralls.io/repos/github/yast/yast-autoinstallation/badge.svg?branch=master)](https://coveralls.io/github/yast/yast-autoinstallation?branch=master)


Development
Expand Down
19 changes: 17 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,23 @@
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 do
add_filter "/test/"
end

src_location = File.expand_path("../../src", __FILE__)
# track all ruby files under src
SimpleCov.track_files("#{src_location}/**/*.rb")

# 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

FIXTURES_PATH = File.join(File.dirname(__FILE__), 'fixtures')
Expand Down

0 comments on commit 9270cba

Please sign in to comment.