diff options
| author | Zack Hobson | 2013-12-09 15:37:17 -0800 |
|---|---|---|
| committer | Zack Hobson | 2013-12-09 15:37:17 -0800 |
| commit | 9e33c49a2f8ac38336f174a5dc53fae8372c61a6 (patch) | |
| tree | 1695b5d8a6a4e2dcbf97b92eeab8424da3728d00 /test | |
| parent | 247b264457178a54cbf937ae2d7ccd474bbeb9b2 (diff) | |
| download | hcl-9e33c49a2f8ac38336f174a5dc53fae8372c61a6.tar.bz2 | |
rbx coverage support
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index d155982..e5685ec 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,13 +1,16 @@ require 'bundler' -if ENV['COVERAGE'] == 'YES' +begin require 'simplecov' SimpleCov.start do add_filter '/test/' add_filter do |source_file| source_file.lines.count < 15 end + minimum_coverage 80 end +rescue LoadError => e + $stderr.puts 'No test coverage tools found, skipping coverage check.' end require 'test/unit' |
