Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use global test helper that allows coveralls stats
- Loading branch information
1 parent
b5680ee
commit 53d87e1
Showing
10 changed files
with
30 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
top_srcdir = File.expand_path("../../../..", __FILE__) | ||
inc_dirs = Dir.glob("#{top_srcdir}/library/*/src") | ||
ENV["Y2DIR"] = inc_dirs.join(":") | ||
|
||
require "yast" | ||
require "yast/rspec" | ||
require_relative "../../../test/test_helper.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require_relative "../../../test/test_helper.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
top_srcdir = File.expand_path("../../../..", __FILE__) | ||
inc_dirs = Dir.glob("#{top_srcdir}/library/*/src") | ||
ENV["Y2DIR"] = inc_dirs.join(":") | ||
|
||
require "yast" | ||
require "yast/rspec" | ||
require_relative "../../../test/test_helper.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
#!/usr/bin/env rspec | ||
|
||
# We need the stubs used for SystemdService tests | ||
require_relative "../../systemd/test/test_helper" | ||
|
||
ENV["Y2DIR"] = File.expand_path("../../src", __FILE__) | ||
|
||
require "yast" | ||
require_relative "../../../test_helper.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
top_srcdir = File.expand_path("../../../..", __FILE__) | ||
inc_dirs = Dir.glob("#{top_srcdir}/library/*/src") | ||
ENV["Y2DIR"] = inc_dirs.join(":") | ||
|
||
require "yast" | ||
require "yast/rspec" | ||
require_relative "../../../test/test_helper.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
root_location = File.expand_path("../../", __FILE__) | ||
inc_dirs = Dir.glob("#{root_location}/library/*/src") | ||
ENV["Y2DIR"] = inc_dirs.join(":") | ||
|
||
require "yast" | ||
require "yast/rspec" | ||
|
||
if ENV["COVERAGE"] | ||
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 |