-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make coverage reporting work with coveralls
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
require 'simplecov-lcov' | ||
|
||
SimpleCov::Formatter::LcovFormatter.config do |c| | ||
c.output_directory = 'coverage' | ||
c.lcov_file_name = 'lcov.info' | ||
c.report_with_single_file = true | ||
end | ||
|
||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ | ||
SimpleCov::Formatter::HTMLFormatter, | ||
SimpleCov::Formatter::LcovFormatter | ||
]) | ||
|
||
SimpleCov.start do | ||
add_filter 'spec/' | ||
add_filter 'features/' | ||
|
||
enable_coverage :branch | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters