ci: Do proper test result reporting in CI

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2458>
This commit is contained in:
Georg Krause 2023-06-11 11:29:39 +02:00
parent 95ead5bc58
commit 0eaede92e5
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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,