Skip to content

Commit a15177c

Browse files
authored
Fix coveralls (#7)
* Update .simplecov * Correct formatter setting
1 parent 706c1c6 commit a15177c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.simplecov

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Code coverage
22
if ENV['COVERAGE']
33
require 'simplecov-cobertura'
4-
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
4+
#SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
5+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
6+
SimpleCov::Formatter::CoberturaFormatter,
7+
Coveralls::SimpleCov::Formatter
8+
])
59

610
SimpleCov.start 'rails'
711
end

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
# Code coverage
1919
if ENV['COVERAGE']
20-
require 'simplecov'
2120
require 'coveralls'
21+
require 'simplecov'
2222
end
2323

2424
RSpec.configure do |config|

0 commit comments

Comments
 (0)