De-integration the cmd/rove tests as well and massively simplify the tests output

This commit is contained in:
Marc Di Luzio 2020-06-06 00:47:48 +01:00
parent 79c07f359b
commit 3bfbe38837
5 changed files with 23 additions and 37 deletions

View file

@ -4,18 +4,16 @@ cd "$(dirname "$0")"
cd ..
set -x
# Check that the cmdline client builds
docker build -f "cmd/rove/Dockerfile" .
# Build and start rove-server
docker-compose -f docker-compose-test.yml up --detach --build
# Run tests, including integration tests
# Check we can build everything
go mod download
go test -v ./... -tags integration -cover -coverprofile=/tmp/c.out
go build ./...
# Take down the service
# Run the server and shut it down again to ensure our docker-compose works
docker-compose up --detach --build
docker-compose down
# Run tests with coverage
go test -v ./... -cover -coverprofile=/tmp/c.out
# Convert the coverage data to html
go tool cover -html=/tmp/c.out -o /tmp/coverage.html