From d4db3603d799876441be387a29714c7d50991d43 Mon Sep 17 00:00:00 2001 From: "bodong.yang" Date: Thu, 16 Nov 2023 07:12:21 +0000 Subject: [PATCH] enable junit test result output --- .github/workflows/test.yml | 3 ++- docker/docker-compose_tests.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c72911bd5..bc8bc3875 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,8 @@ jobs: continue-on-error: true uses: MishaKav/pytest-coverage-comment@v1.1.49 with: - pytest-xml-coverage-path: ./test_result/coverage.xml + pytest-xml-coverage-path: test_result/coverage.xml + junitxml-path: test_result/pytest.xml python_lint_check: runs-on: ubuntu-20.04 diff --git a/docker/docker-compose_tests.yml b/docker/docker-compose_tests.yml index 89650d5b2..800ab730f 100644 --- a/docker/docker-compose_tests.yml +++ b/docker/docker-compose_tests.yml @@ -6,7 +6,7 @@ services: dockerfile: ./docker/test_base/Dockerfile image: ota-test_base network_mode: bridge - command: "bash -c 'coverage run -m pytest && coverage xml -o test_result/coverage.xml'" + command: "bash -c 'coverage run -m pytest --junit-xml=test_result/pytest.xml && coverage xml -o test_result/coverage.xml'" container_name: ota-test volumes: - ../pyproject.toml:/ota-client/pyproject.toml:ro