Skip to content

🏦 Unit and integration tests for the banking API using JUnit and Mockito. Additionally, I documented the test coverage using Jacoco and Sonar Cloud.

victorborzaquel/spring-tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests with Spring Boot JUnit 5 and Mockito

This project is a homework assignment for the course "Santander Coders" at the Ada. It is a simple example of how to test a Spring Boot application with JUnit 5 and Mockito.

Jacoco test coverage report

Jacoco test coverage report

SonarCloud analysis

SonarCloud analysis

How to run the tests

To run the tests, you need to have Java 17 installed on your machine. Then, you can run the following command:

mvn test

How to generate the test coverage report

To generate the test coverage report, you need to have Java 17 and Maven installed on your machine. Then, you can run the following command:

mvn clean install

After that, you can find the report in the target/site/jacoco/index.html file.

About

🏦 Unit and integration tests for the banking API using JUnit and Mockito. Additionally, I documented the test coverage using Jacoco and Sonar Cloud.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%