Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 2acd8c3

Browse files
committed
Add docs on how to generate simplecov reports
1 parent fda4ba7 commit 2acd8c3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,28 @@ VCR.configure do |config|
8989
end
9090
```
9191

92+
**Cannot generate local simplecov report**
93+
94+
Override `SimpleCov.formatter` by adding both your prefered simplecov formatter and Codacy's formatter.
95+
You can also add more options to `SimpleCov.start`.
96+
97+
```ruby
98+
require 'simplecov'
99+
require 'codacy-coverage'
100+
101+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
102+
SimpleCov::Formatter::HTMLFormatter,
103+
Codacy::Formatter
104+
])
105+
106+
SimpleCov.start do
107+
add_filter '.gems'
108+
add_filter 'pkg'
109+
add_filter 'spec'
110+
add_filter 'vendor'
111+
end
112+
```
113+
92114
## What is Codacy?
93115

94116
[Codacy](https://www.codacy.com/) is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.

0 commit comments

Comments
 (0)