Skip to content

nikolayk812/tu-tc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slides

https://speakerdeck.com/nikolayk812/testcontainers-plus-junit-5-equals-elegant-integration-and-e2e-tests-for-microservices

TestContainers demo

There are 2 services in this demo:

  • User service
  • Item service

User service uses Postgres and Item service uses Redis respectively and has dependency on User service. Each service has a SpringBootTest which uses non-mocked DB started by TestContainers library.

test-runner module is an example of a framework to start all 2 services and their dependencies together in order to perform end-to-end tests.

Stack

  • Spring Boot
  • Docker
  • Postgres, Redis
  • TestContainers
  • JUnit 5

Setup

To build all services in Docker:

sh build-all.sh

To run end-to-end tests:

cd test-runner
mvn test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published