$:.unshift(File.join("../lib", __FILE__)) require "bundler/setup" require 'rspec' begin require 'simplecov' require 'simplecov-lcov' SimpleCov::Formatter::LcovFormatter.config do |config| #Coveralls is coverage by default/lcov. Send info results config.report_with_single_file = true config.single_report_path = 'coverage/lcov.info' end SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::LcovFormatter ]) SimpleCov.start do add_filter "/spec/" end rescue LoadError end require 'pplcdid' ::RSpec.configure do |c| c.filter_run focus: true c.run_all_when_everything_filtered = true end