Closed yaravind closed 8 years ago
got to go back and forth to figure the correct commands. got it working with the following
mvn test jacoco:report
export CODACY_PROJECT_TOKEN=<<add your token>>
curl https://www.jpm4j.org/install/script | sudo "PATH=$PATH" sh
sudo "PATH=$PATH" jpm install com.codacy:codacy-coverage-reporter:assembly
codacy-coverage-reporter -l Java -r target/site/jacoco/jacoco.xml --prefix src/main/java/
Adding the codacy badge isn't clear either. So here is the markup
[![Codacy Badge](https://api.codacy.com/project/badge/grade/<<codacy token>>)](https://www.codacy.com/app/<<your app codacy dashboard>>)
For e.g. my app dashboard is "yaravind/kafka-connect-jenkins/dashboard"
https://www.codacy.com/app/yaravind/kafka-connect-jenkins/settings/coverage#IntegrationsTab https://github.com/codacy https://www.quora.com/Is-there-a-Java-equivalent-to-Code-Climate