Permalink
Browse files

[ci skip] Update coverage setup

  • Loading branch information...
solnic committed Mar 28, 2013
1 parent 8634c96 commit 892130258860e05170b27f969666bb3f0586f508
Showing with 12 additions and 2 deletions.
  1. +12 −2 spec/spec_helper.rb
View
@@ -1,7 +1,17 @@
-if ENV['COVERAGE']
+if ENV['COVERAGE'] == 'true'
require 'simplecov'
+ require 'coveralls'
+
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+ ]
+
SimpleCov.start do
- add_filter "/spec/"
+ command_name 'spec:unit'
+ add_filter 'config'
+ add_filter 'spec'
+ minimum_coverage 100
end
end

0 comments on commit 8921302

Please sign in to comment.