forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the coverage analysis throw simplecov to take care of all files
make the eager loading patterns consistent in the spec_helper.rb file make the setup-simplecov task not a dependency, but an explicit task only executed when ENV['COVERAGE'] is defined refactor eager loading code plus add some documentation to the setup-simplecov task Added more comments to the test:setup task Fixes elastic#3465
- Loading branch information
1 parent
e715248
commit cf10890
Showing
4 changed files
with
50 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -77,7 +77,7 @@ def jruby? | |
end | ||
|
||
def windows? | ||
Gem.win_platform? | ||
::Gem.win_platform? | ||
end | ||
|
||
def vendor_path(path) | ||
|
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,14 @@ | ||
# Useful module to help loading all logstash content when | ||
# running coverage analysis | ||
module CoverageHelper | ||
|
||
SKIP_LIST = ["lib/bootstrap/rspec.rb", "lib/logstash/util/prctl.rb"] | ||
|
||
def self.eager_load | ||
Dir.glob("lib/**/*.rb") do |file| | ||
next if SKIP_LIST.include?(file) | ||
require file | ||
end | ||
end | ||
|
||
end |
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