spec/spec_helper.rb in candy_check-0.4.0 vs spec/spec_helper.rb in candy_check-0.5.0
- old
+ new
@@ -1,12 +1,25 @@
-require "coveralls"
-Coveralls.wear!
require "candy_check"
require "candy_check/cli"
def in_continuous_integration_environment?
ENV["CI"] || ENV["TRAVIS"] || ENV["CONTINUOUS_INTEGRATION"]
+end
+
+require "simplecov"
+
+SimpleCov.start do
+ if in_continuous_integration_environment?
+ require "simplecov-lcov"
+
+ SimpleCov::Formatter::LcovFormatter.config do |c|
+ c.report_with_single_file = true
+ c.single_report_path = "coverage/lcov.info"
+ end
+
+ formatter SimpleCov::Formatter::LcovFormatter
+ end
end
require "minitest/autorun"
require "minitest/around/spec"
require "minitest/focus" unless in_continuous_integration_environment?