Azure / pytest-azurepipelines

Plugin for pytest that makes it simple to work with Azure Pipelines
MIT License
112 stars 35 forks source link

Pytest-azurepipelines is trying to publish test results even before the test-output.xml file is created. #92

Open mkhullar opened 6 months ago

mkhullar commented 6 months ago

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

Updating Configuration

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.