spec/spec_helper.rb in paraduct-0.0.2 vs spec/spec_helper.rb in paraduct-0.0.3.beta2
- old
+ new
@@ -1,15 +1,17 @@
-require 'simplecov'
-require 'coveralls'
-require 'codeclimate-test-reporter'
+if ENV["COVERAGE"]
+ require 'simplecov'
+ require 'coveralls'
+ require 'codeclimate-test-reporter'
-SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
- CodeClimate::TestReporter::Formatter,
- Coveralls::SimpleCov::Formatter
-]
-SimpleCov.start do
- %w(/bin/ /vendor/ /spec/).each do |ignore_path|
- add_filter(ignore_path)
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ CodeClimate::TestReporter::Formatter,
+ Coveralls::SimpleCov::Formatter
+ ]
+ SimpleCov.start do
+ %w(/bin/ /vendor/ /spec/).each do |ignore_path|
+ add_filter(ignore_path)
+ end
end
end
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'paraduct'