Spring-Boot-With-Test-Driven-Development

Spring Boot With Test Driven Development ( TDD )

MIT License

Stars
12

Spring Boot With Test Driven Development ( TDD )

What is Test Driven Development ( TDD ) ?

Advantages of Test Driven Development ( TDD )

  • You have a better understanding of a feature you implement
  • 100% testable code
  • You have robust indicators of feature completeness
  • Low maintenance cost
  • Code is covered with tests and has less chance to be corrupted by fixes or new features

Tech Stack

  • Java 11
  • Spring Boot
  • Maven
  • JUnit 5
  • Mockito
  • TestContainers

Requirements

For building and running the application you need:

Build & Run

  docker run -d --name dev-postgres -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e POSTGRES_DB=tdd -p 5433:5432 postgres
  CREATE DATABASE tdd;
  mvn clean install && mvn --projects tdd spring-boot:run

Port

  http://localhost:8080