ci: Do proper test result reporting in CI

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2458>
environments/review-docs-2154-lq0f50/deployments/17664
Georg Krause 2023-06-11 11:29:39 +02:00
rodzic 95ead5bc58
commit 0eaede92e5
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -288,7 +288,10 @@ test_front:
- yarn test:unit
artifacts:
reports:
junit: front/coverage/cobertura-coverage.xml
junit: front/test_results.xml
coverage_report:
coverage_format: cobertura
path: front/coverage/cobertura-coverage.xml
build_metadata:
stage: build

Wyświetl plik

@ -70,6 +70,8 @@ export default defineConfig(({ mode }) => ({
test: {
environment: 'jsdom',
globals: true,
reporters: ['default', 'junit'],
outputFile: "./test_results.xml",
coverage: {
src: './src',
all: true,