spec/spec_helper.rb in cinnamon_serial-2.1.1 vs spec/spec_helper.rb in cinnamon_serial-2.1.2
- old
+ new
@@ -7,12 +7,18 @@
# LICENSE file in the root directory of this source tree.
#
require 'date'
require 'pry'
+require 'pry-byebug'
-require 'simplecov'
-require 'simplecov-console'
-SimpleCov.formatter = SimpleCov::Formatter::Console
-SimpleCov.start
+unless ENV['DISABLE_SIMPLECOV'] == 'true'
+ require 'simplecov'
+ require 'simplecov-console'
+
+ SimpleCov.formatter = SimpleCov::Formatter::Console
+ SimpleCov.start do
+ add_filter %r{\A/spec/}
+ end
+end
require './lib/cinnamon_serial'