- Docker
The setup includes a MariaDB database and the application running with the local
profile. This ensures that Liquibase can seed the database with the necessary tables.
-
Navigate to the Project Root Directory
Open your terminal and navigate to the root directory of the project:
cd ~/qa
-
Run Docker Compose
Execute the following command to start the application and MariaDB services:
docker-compose up
Note: The first time you run this command, it may fail with a "connection refused" error. This is expected due to the time it takes for MariaDB to initialize. Run the command again to successfully start the application.
-
Accessing Swagger UI
Once the application is up and running, you can access the Swagger UI at:
http://localhost:8090/swagger-ui/index.html
To generate the code coverage report, run the following Gradle command:
./gradlew codeCoverageReport --build-cache --no-daemon
The report will be generated and can be viewed at:
~/qa/build/reports/jacoco/codeCoverageReport/html/index.html
The BDD tests are located in the application
module of the project.
By following these steps, you should be able to launch the application locally, access the Swagger UI for API documentation, and generate code coverage reports.