Skip to content

Commit

Permalink
enable junit test result output
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Nov 16, 2023
1 parent 21a63d1 commit 3176089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
continue-on-error: true
uses: MishaKav/[email protected]
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
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3176089

Please sign in to comment.