summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorZack Hobson2013-12-04 10:40:58 -0800
committerZack Hobson2013-12-04 10:40:58 -0800
commitce7426505333276d732834c696ee498ed8ef27a3 (patch)
tree9dca1650001c2e3b5c951d06007a81210672413a /test
parent3036243f66f7e0e1f83b1c01129118cb253ede65 (diff)
downloadhcl-ce7426505333276d732834c696ee498ed8ef27a3.tar.bz2
optional coverage
Diffstat (limited to 'test')
-rw-r--r--test/test_helper.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 0b8708d..d155982 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,9 +1,12 @@
require 'bundler'
-require 'simplecov'
-SimpleCov.start do
- add_filter '/test/'
- add_filter do |source_file|
- source_file.lines.count < 15
+
+if ENV['COVERAGE'] == 'YES'
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter '/test/'
+ add_filter do |source_file|
+ source_file.lines.count < 15
+ end
end
end