Hello Martin, Thanks for reaching out on Microsoft Q&A!
Currently, the PublishTestResults@2 task in Azure DevOps only parses a limited subset of the JUnit XML schema. While elements such as test case name, class name, duration, error/failure messages, and stack traces are supported, custom metadata like <properties> or <property name="Tags" … /> are not displayed in the Test Results web tab.
That’s why the tags you’ve added under <testcase><properties> are not appearing in the UI. Since this feature isn't supported out-of-the-box, the most effective approach is to use a workaround.
Workarounds
- Embed tags in test names
Include tags directly in the test case name so they show up in the results grid:
Documentation: Publish Test Results task<testcase classname="LoginTests" name="[Smoke][UI] should login with valid user" time="0.12"/> - Use TRX format (if applicable)
If your framework supports TRX (for example with MSTest or VSTest), you’ll get richer integration with Azure DevOps Test Explorer, and you can map categories more easily. - Azure Test Plans
If you need filterable/searchable tags in the Azure DevOps portal, the supported approach is to manage your test cases within Azure Test Plans, where tags and custom fields are first-class citizens.
Documentation: Manage Test Cases - Custom reporting
For advanced test reporting needs, consider integrating with tools like Allure or ReportPortal and publishing a link in your pipeline summary. This way you can expose tags and other metadata outside of the default Azure DevOps test tab.
Documentation: Integrating Allure with Azure Pipelines
Disclaimer: This document is not maintained by Microsoft. It is being shared solely for your convenience.
At this time there’s no supported way to surface JUnit <properties>/tags in the Azure DevOps Test Results web tab. The recommended workaround is embedding them in test names or using Test Plans for richer test management.
Hope the above helps! Let us know if you have any further question. Thank you!