Fix tests with a proper start-up and shutdown procedure with a sync

This commit is contained in:
Marc Di Luzio 2020-05-31 19:48:43 +01:00
parent 179dd3f984
commit d104c90445
4 changed files with 30 additions and 18 deletions

View file

@ -4,18 +4,13 @@ cd "$(dirname "$0")"
cd ..
set -x
# Test the build
go build -v .
# Run unit tests
go test -v ./... -cover
# Verify docker build
docker build .
# Run the integration tests with docker-compose
# Build and start the service
docker-compose up --build --detach
# Run tests, including integration tests
go test -v ./... -tags integration -cover -coverprofile=/tmp/c.out
# Take down the service
docker-compose down
# Convert the coverage data to html