mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
add all in one testing and coverage analysis
This commit is contained in:
parent
7b8fc67512
commit
71ab20bbef
2 changed files with 17 additions and 0 deletions
|
@ -130,6 +130,22 @@ test:user:
|
||||||
variables:
|
variables:
|
||||||
TEST_FOLDER: routes/user
|
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
|
# Stage: deploy
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# <img src="doc/pictures/villas_web.png" width=40 /> VILLASweb-backend-go
|
# <img src="doc/pictures/villas_web.png" width=40 /> VILLASweb-backend-go
|
||||||
|
|
||||||
[](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/commits/master)
|
[](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/commits/master)
|
||||||
|
[](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/commits/master)
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
This is a rewrite of the backend for the VILLASweb
|
This is a rewrite of the backend for the VILLASweb
|
||||||
|
|
Loading…
Add table
Reference in a new issue