add all in one testing and coverage analysis

This commit is contained in:
Sonja Happ 2019-09-09 13:27:26 +02:00
parent 7b8fc67512
commit 71ab20bbef
2 changed files with 17 additions and 0 deletions

View file

@ -130,6 +130,22 @@ test:user:
variables:
TEST_FOLDER: routes/user
test:all:
stage: test
tags:
- docker
image: villaswebbackendgo:ubuntu
script:
- /etc/init.d/postgresql start
- go mod tidy
- go get -u github.com/swaggo/swag/cmd/swag
- ~/go/bin/swag init -p pascalcase -g "start.go" -o "./doc/api/"
- go test $(go list ./... ) -v -p 1 -covermode=count -coverprofile ./testcover.txt
- go tool cover -func=testcover.txt
dependencies:
- build:backend
# Stage: deploy
##############################################################################

View file

@ -1,6 +1,7 @@
# <img src="doc/pictures/villas_web.png" width=40 /> VILLASweb-backend-go
[![pipeline status](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/badges/master/pipeline.svg)](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/commits/master)
[![coverage report](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/badges/master/coverage.svg)](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/commits/master)
## Description
This is a rewrite of the backend for the VILLASweb