Skip to content
Snippets Groups Projects
Commit af6710dc authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Merge branch 'test-coverage' into 'main'

Add test coverage

See merge request aura/tank!18
parents 03ef86c8 d692c1b4
No related branches found
No related tags found
No related merge requests found
......@@ -43,13 +43,7 @@ prepare:
- go vet ./...
rules: *feature-rules
test-all-but-store:
stage: test
script:
- go test -v -cover $(go list ./... | grep -v tank/store)
rules: *feature-rules
test-store-postgres:
test-all:
stage: test
services:
- postgres:14
......@@ -61,7 +55,14 @@ test-store-postgres:
AURA_TANK_TEST_DB_HOST: "postgres"
script:
- go run contrib/waitfor-tcp.go postgres:5432 30
- go test -v -cover ./store
- go test $(go list ./... | grep -v api/docs) -coverprofile=coverage.out -covermode count
- go get github.com/boumenot/gocover-cobertura
- go run github.com/boumenot/gocover-cobertura < coverage.out > coverage.xml
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
rules: *feature-rules
build:
......
# Import and Playlist Daemon
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)
[![latest release](https://gitlab.servus.at/aura/tank/-/badges/release.svg)](https://gitlab.servus.at/aura/tank/-/releases)
[![pipeline status](https://gitlab.servus.at/aura/tank/badges/main/pipeline.svg)](https://gitlab.servus.at/aura/tank/-/commits/main)
[![coverage report](https://gitlab.servus.at/aura/tank/badges/main/coverage.svg?job=run_test_coverage)](https://gitlab.servus.at/aura/tank/-/commits/main)
Tank implements an AURA import and playlist daemon. Uploads can be normalized
based on the [loudnorm](https://k.ylo.ph/2016/04/04/loudnorm.html) Loudness
Normalization. Resulting files are served to Aura Engine via some configured
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment