'Integration of Azure Devops and Python for passing test results from automation script and update in Azure Devops?
I'm currently performing some mobile app automation with Appium and Python, where test cases are on Azure Devops.
I have done the same thing with Appium, Python and TestLink. And I have passed the test results automatically to TestLink using TestLink-API-Python-client.
Is there anyway I could do the same thing with Azure Devops?
Solution 1:[1]
this is the yaml code for the pipeline (excerpt) that I've been using for uploading tests of pytest to Azure Devops:
- script: PYTHONPATH=$(pwd) pytest python/tests --type test --junitxml=test_everything.xml
displayName: "Run pytest"
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test_*.xml'
searchFolder: '$(Build.Repository.LocalPath)/deployment'
condition: always()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | 4c74356b41 |