lib/ledger_sync/test/support.rb in ledger_sync-2.0.0 vs lib/ledger_sync/test/support.rb in ledger_sync-2.0.1

- old
+ new

@@ -37,20 +37,27 @@ ) require 'climate_control' require 'webmock/rspec' require 'simplecov' + require 'simplecov-lcov' require 'coveralls' + + SimpleCov::Formatter::LcovFormatter.config do |c| + c.report_with_single_file = true + c.single_report_path = 'coverage/lcov.info' + end Coveralls.wear!('rails') SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( [ Coveralls::SimpleCov::Formatter, - SimpleCov::Formatter::HTMLFormatter + SimpleCov::Formatter::HTMLFormatter, + SimpleCov::Formatter::LcovFormatter ] ) - SimpleCov.start do + SimpleCov.start('rails') do add_filter 'lib/ledger_sync/util/debug.rb' end # Set an environment variable to determine when we are testing. This # prevents things like the QuickBooks Online client overwriting