Skip to content

The purpose of this repo is to serve as a reference when deciding what test levels to use to test a microservice.

Notifications You must be signed in to change notification settings

Cozonacci/testing-pyramid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Microservices in Java

Objective

The purpose of this repo is to serve as a reference when deciding what test levels to use to test a microservice.

Test Examples

The following testing levels can be observed:

SUT (System Under Test) as Docker Container

Steps to create the Docker image and run the container:

  • mvn clean package - to package and create the jar file
  • docker build -t sample-sut4test . - to build the Docker image
  • docker run -d -p 8081:8081 sample-sut4test - to run the Docker container
  • http://localhost:8081/ui/v1/employees - to check the application is running correctly

Workflow

sequenceDiagram
    Alice ->> Bob: Hello Bob, how are you?
    Bob -->> John: How about you John?
    Bob --x Alice: I am good thanks!
    Bob -x John: I am good thanks!
    Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
    Bob --> Alice: Checking with John...
    Alice -> John: Yes... John, how are you?
Loading

About

The purpose of this repo is to serve as a reference when deciding what test levels to use to test a microservice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published