Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8393492
spec_helper_local.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
784 B
Subscribers
None
spec_helper_local.rb
View Options
if
ENV
[
'COVERAGE'
]
==
'yes'
require
'simplecov'
require
'simplecov-console'
require
'codecov'
SimpleCov
.
formatters
=
[
SimpleCov
::
Formatter
::
HTMLFormatter
,
SimpleCov
::
Formatter
::
Console
,
SimpleCov
::
Formatter
::
Codecov
,
]
SimpleCov
.
start
do
track_files
'lib/**/*.rb'
add_filter
'/spec'
# do not track vendored files
add_filter
'/vendor'
add_filter
'/.vendor'
# do not track gitignored files
# this adds about 4 seconds to the coverage check
# this could definitely be optimized
add_filter
do
|
f
|
# system returns true if exit status is 0, which with git-check-ignore means file is ignored
system
(
"git check-ignore --quiet
#{
f
.
filename
}
"
)
end
end
end
require
'rspec-puppet-facts'
include
RspecPuppetFacts
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Wed, Jun 4, 7:14 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3288854
Attached To
rSPNTP puppet-puppetlabs-ntp
Event Timeline
Log In to Comment