Azure / Azure/pytest-azurepipelines
Pytest-azurepipelines is trying to publish test results even before the test-output.xml file is created.
- Dominant language
- Python
- Stars
- 124
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
We are running pytests using the following command:
```
python3 -m pytest -s --doctest-modules --junitxml=qa_integration_cli.xml --cov=. --cov-report=xml ./program.py --no-coverage-upload \
```
During the pipeline run, we see that the plugin is trying to publish test results even before the test-output.xml file is created.
We keep getting warnings as a result of this.
*** Run Integration test (CLI)
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0
rootdir: /integration
plugins: env-0.6.2, azurepipelines-1.0.3, nunit-1.0.1, cov-3.0.0
- Downloading CLI from:
Updating Configuration
- CLI Version: build: Linux x64 Portable
- Service URL:
collected 11 items
##[warning]Failed to publish test results: Could not find a part of the path '/integration/test-output.xml'.
Skipping uploading of coverage data.
------------ generated Nunit xml file: /integration/test-output.xml ------------
----------- generated xml file: /integration/qa_integration_cli.xml ------------
Azure Pipeline team mentioned that this seems like issue with plugin pytest-azurepipelines.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.