A simple HTTP REST service web application also called as Person API
git clone https://github.com/vidhya03/http-patch-jax-rs.git
cd http-patch-jax-rs.git
mvn compile
Spotbugs SpotBugs is a program which uses static analysis to look for bugs in Java code.
Spotbugs can be triggred via compile time.
mvn -Pspotbugs compile
Spotbugs can also be check by using the below command.
mvn -Pspotbugs spotbugs:check
Debug
the spotbugs error via the following command.
mvn -Pspotbugs spotbugs:gui
The above command will popup spotbugs errors in GUI like this
mvn test
mvn test -Dkarate.env=dev
and the HTML reports would be output to /target/surefire-reports/TEST-com.labkit.test.personapi.PersonApi.html
mvn cobertura:cobertura
and the HTML reports would be output to target/site/cobertura/index.html
mvn clean test -Pcoverage
and the HTML reports would be output to target/site/jacoco/index.html