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

Commit 8a099e4

Browse files
committed
add readme
1 parent 0b507c9 commit 8a099e4

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# ruby-codacy-coverage
2+
3+
Ruby coverage reporter for Codacy https://www.codacy.com
4+
5+
[![Build Status](https://circleci.com/gh/codacy/ruby-codacy-coverage.png?style=shield&circle-token=:circle-token)](https://circleci.com/gh/codacy/ruby-codacy-coverage)
6+
7+
Parses SimpleCov output and submits the result to Codacy
8+
9+
## Setup
10+
11+
Include the gem in your project
12+
13+
```
14+
gem 'codacy-coverage', :require => false
15+
```
16+
17+
In the first line of your spec_helper initialize the reporter:
18+
19+
```
20+
require 'codacy-coverage'
21+
22+
Codacy::Reporter.start
23+
```
24+
25+
26+
#### Configuration
27+
28+
To update Codacy, you will need your project API token. You can find the token in Project -> Settings -> Integrations -> Project API.
29+
30+
Then set it in your terminal, replacing %Project_Token% with your own token:
31+
32+
```
33+
export CODACY_PROJECT_TOKEN=%Project_Token%
34+
```
35+
36+
By default this plugin will not submit results if you run your tests in localhost. If you want to force the submission you can setup the following environment variable:
37+
38+
```
39+
export CODACY_RUN_LOCAL=true
40+
```

0 commit comments

Comments
 (0)