This repository has been archived by the owner on May 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joseph Henrich
committed
Jul 1, 2014
1 parent
6e0be9b
commit 2f1f422
Showing
16 changed files
with
240 additions
and
82 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require 'simplecov-rcov' | ||
SimpleCov.profiles.define 'spec' do | ||
add_group 'jenkins_pipeline_builder', '/lib/' | ||
add_filter 'spec' | ||
coverage_dir 'out/coverage' | ||
formatter SimpleCov::Formatter::MultiFormatter[ | ||
SimpleCov::Formatter::Console, | ||
SimpleCov::Formatter::RcovFormatter, | ||
] | ||
end | ||
|
||
class SimpleCov::Formatter::Console | ||
def format(result) | ||
print "COVERAGE: #{result.covered_percent.round(2)}%\n" | ||
end | ||
end | ||
|
||
SimpleCov.start 'spec' #if ENV["COVERAGE"] | ||
|
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
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
Oops, something went wrong.