Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 1.95 KB

README.md

File metadata and controls

65 lines (49 loc) · 1.95 KB

Testing UI and microservices CI

This project demonstrates how to test REST API microservices using spring-boot, feign client, spring-bot-test, WireMock and rest-assured. Also current project demonstrates how to test web application UIs using TestContainers, selenide with Kotlin and maven

Development

Testing / Documentation

./mvnw clean package
open greeting/greeting-service/target/docs/

Integration testing using docker and docker-compose

./mvnw -DskipTests docker:remove clean package docker:build
./mvnw -f infrastructure/docker-compose docker-compose:up

Then test nginx-reverse-proxy:

http :/
http :/greet
http :/greeting-service/api/v1/greetings/greet name=Maksim

cleanup:

./mvnw docker-compose:down
./mvnw docker:remove
docker rm -f -v `docker ps -aq`
docker rmi -f `docker images -q -f dangling=true`

End-to-end testing using testcontainers, kotlin, selenide and spring-boot-test

rm -rf ~/.m2/repository/example
./mvnw clean install # run all non-e2e test and install required deps locally...
./mvnw -f webapp test -P e2e # run e2e tests only...

cleanup:

./mvnw docker-compose:down
./mvnw docker:remove
docker rm -f -v `docker ps -aq`
./mvnw clean
docker rmi -f `docker images -q -f dangling=true`
rm -rf ~/.m2/repository/example

RTFM