Skip to content

Commit 62b138d

Browse files
updated readme
1 parent 6f7a09d commit 62b138d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This project mainly focussed on the kickstart to the CI/CD using TravisCI. Also
1414
- [X] SonarQube integration
1515
- [X] Jacoco Test report
1616
- [ ] JWT authentication
17-
- [ ] 80% and above Code Coverage
17+
- [ ] 80% and above Code Coverage (using codecov or coveralls)
1818
- [ ] Cloud deployment
1919

2020
### Getting Started
@@ -67,6 +67,14 @@ Use postman for the below tests :
6767

6868
##### [modifyPetById](https://github.com/GouravRusiya30/SpringBootRestAPI/blob/master/docs/modifyPetById.png)
6969

70+
### Code Coverage
71+
For code coverage reports integration, I have shown example using Codecov and Coveralls as both are pretty popular and easy to integrate with the travis.
72+
73+
* Codecov - Just add [this line](https://github.com/GouravRusiya30/SpringBootRestAPI/blob/master/.travis.yml#L5) in the [.travis.yml](https://github.com/GouravRusiya30/SpringBootRestAPI/blob/master/.travis.yml) which will send the jacoco report to the codecov console
74+
75+
* Coveralls - Need to add [coveralls plugin](https://github.com/GouravRusiya30/SpringBootRestAPI/blob/coverall-integration/build.gradle#L3) and [jacoco report path](https://github.com/GouravRusiya30/SpringBootRestAPI/blob/97df783623e5c35696451c580cc7895d17c0743a/build.gradle#L52) in the build.gradle file. Also need change in [.travis.yml](https://github.com/GouravRusiya30/SpringBootRestAPI/blob/97df783623e5c35696451c580cc7895d17c0743a/build.gradle#L52) instead of codecov to use coveralls
76+
77+
7078
### Contributing
7179
Please read [CONTRIBUTING.md](https://github.com/GouravRusiya30/SpringBootRestAPI/blob/master/docs/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
7280

0 commit comments

Comments
 (0)