Skip to content

debmalya/odysses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find the best plan

Finds the combination of plans that offers all selected features at the lowest price.

Build

Use mvn compile for building.

Run

  • Use mvn spring-boot:run to run the application.

How to test RESTFUL API

Linting

Formatting should follow Google Java Format. It will be enforced during verify phase of maven. To fix reported issues mvn spotless:apply can be used.

Tests

mvn test should run unit tests. Tests that are not at component/class level i.e. requiring Spring container are suffixed with IT and are run via mvn integration-test.

Coverage

Unit test coverage using Jacoco can be run via mvn clean test jacoco:report and report will be generated in target/site/jacoco/index.html. For integration tests run mvn clean test-compile failsafe:integration-test jacoco:report.

Note: If you want to exclude a class from test report, please add the exclusion in the pom.xml for JacocoReport and also add the exclusion to sonarCoverageExclusions in the Jenkinsfile.

Run

mvn spring-boot:run

How to create docker image

  • Creating docker image mvn install docker build -t debgtjb/bestplan . docker run -p 8080:8080 debgtjb/bestplan

docker image location

Docker image

Wiki Page added