spec/spec_helper.rb in hackpad-cli-0.1.0 vs spec/spec_helper.rb in hackpad-cli-0.1.1
- old
+ new
@@ -1,13 +1,23 @@
$LOAD_PATH << File.expand_path('../../lib', __FILE__)
require 'rubygems'
require 'bundler'
-require 'coveralls'
-Coveralls.wear!
-# require "codeclimate-test-reporter"
-# CodeClimate::TestReporter.start
+if ENV['COV']
+ require 'simplecov'
+ SimpleCov.profiles.define :hpcli do
+ add_filter '/vendor/'
+ add_filter '/spec/'
+ end
+ SimpleCov.start :hpcli
+else
+ require 'coveralls'
+ Coveralls.wear!
+
+ # require "codeclimate-test-reporter"
+ # CodeClimate::TestReporter.start
+end
RSpec.configure do |config|
config.mock_with :rspec
config.expect_with :rspec do |c|
c.syntax = :expect