cleaned up and documented live testing script usage

This commit is contained in:
fejera 2019-11-24 12:42:59 +01:00
parent ae8ef36227
commit 23fb4ae451
4 changed files with 18 additions and 8 deletions

View File

@ -0,0 +1,9 @@
=========
## Spring Data MongoDB Live Testing
There are 3 scripts to simplify running live tests:
1. `live-test-setup.sh` builds a docker image with the necessary setup and runs it. The environment is ready, when the log stops - it takes approximately 30 seconds.
2. `live-test.sh` runs the live tests (but no other tests).
3. `live-test-setup.sh` stops and removes the docker image.

View File

@ -0,0 +1,5 @@
#!/bin/bash
docker image build -t spring-data-mongodb:live-test live-test/
docker run -p 27017:27017 --name spring-data-mongodb-live-test spring-data-mongodb:live-test

View File

@ -0,0 +1,4 @@
#!/bin/bash
docker stop spring-data-mongodb-live-test
docker rm spring-data-mongodb-live-test

View File

@ -1,11 +1,3 @@
#!/bin/bash
docker image build -t spring-data-mongodb:live-test live-test/
docker run -p 27017:27017 --name spring-data-mongodb-live-test -it spring-data-mongodb:live-test
#wait
mvn clean compile test -P live-all
docker stop spring-data-mongodb-live-test
docker rm spring-data-mongodb-live-test