use xml for coverage info

This commit is contained in:
Matthias Mair 2024-04-04 00:24:14 +02:00
parent 9839f64717
commit af53add1ba
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
2 changed files with 9 additions and 2 deletions

View File

@ -281,7 +281,9 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: backend
parallel: true
file: coverage.xml
git-commit: ${{ github.sha }}
git-branch: ${{ github.ref }}
postgres:
name: Tests - DB [PostgreSQL]
@ -514,7 +516,8 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: pui
parallel: true
git-commit: ${{ github.sha }}
git-branch: ${{ github.ref }}
platform_ui_build:
name: Build - UI Platform

View File

@ -55,6 +55,9 @@ def apps():
'users',
'plugin',
'InvenTree',
'generic',
'machine',
'web',
]
@ -862,6 +865,7 @@ def test(
# Run tests within coverage environment, and generate report
c.run(f'coverage run {managePyPath()} {cmd}')
c.run('coverage html -i')
c.run('coverage xml')
else:
# Run simple test runner, without coverage
manage(c, cmd, pty=pty)