aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-07-24 21:49:28 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-07-24 21:49:28 +0900
commit12d50a8bf6a7c6b4d6653e58dd7bb6c509ae0dcb (patch)
tree7d3196494f0c695fd9f260e827d8300421ccc2f3 /test/test_helper.rb
parent3a9e9905ad8f564e2850e449e447a86906b0f00b (diff)
downloadplum-12d50a8bf6a7c6b4d6653e58dd7bb6c509ae0dcb.tar.gz
test: use simplecov
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 9e0f16b..fefe965 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,5 +1,16 @@
-require "coveralls"
-Coveralls.wear!
+begin
+ require "coveralls"
+ require "simplecov"
+ Coveralls.wear!
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+ ]
+ SimpleCov.start do
+ add_filter "test/"
+ end
+rescue LoadError
+end
require "plum"
require "timeout"