/testcontainers-selenide-remote

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

Primary LanguageKotlin

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