http-patch-jax-rs

Created: 2016-03-07 15:50
Updated: 2018-10-23 07:46
License: mit

README.md

Person API

Build Status codecov License: MIT HitCount GitHub issues PRs Welcome

A simple HTTP REST service web application also called as Person API

Heads up

Development

  • checkout
  git clone https://github.com/vidhya03/http-patch-jax-rs.git
  • compile
  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 spotbugs error view in GUI

Rest API testing using karate

  • To run test against production
  mvn test
  • To run test against local deployment
  mvn test -Dkarate.env=dev

and the HTML reports would be output to /target/surefire-reports/TEST-com.labkit.test.personapi.PersonApi.html karate test Report

Code Coverage using Cobertura

  • To run test and perform code coverage
  mvn cobertura:cobertura

and the HTML reports would be output to target/site/cobertura/index.html Cobertura Code Coverage Report

Code Coverage using Jacoco

  • To run test and perform code coverage
  mvn clean test -Pcoverage

and the HTML reports would be output to target/site/jacoco/index.html Jacoco Code Coverage Report

License

Credits

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more