codefreshdemo / cf-example-integration-tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java/Spring/JUnit/Spock Integration tests example

This is an example Java application that uses Spring and Tomcat to run. It is compiled using Codefresh.

Running the app

To compile and package using Docker

docker build . -t my-app
docker run -p 8080:8080 my-app

Then enter http://localhost:8080/wizard/ on your browser

Running the integration tests locally

To compile and package using Docker compose

docker-compose up

This will launch two containers, one of the applications and one for the unit tests. All unit tests will run automatically.

To use this project in Codefresh

There is also a codefresh.yml for easy usage with the Codefresh CI/CD platform.

More details can be found in Codefresh documentation

About


Languages

Language:Java 39.3%Language:FreeMarker 29.9%Language:CSS 12.8%Language:Shell 11.2%Language:Groovy 3.5%Language:HTML 1.9%Language:Dockerfile 1.4%