azure-devopsalluretest-reporting

How to implement Allure report in Azure Devops?


I am running some API tests which generates a customized xml junit report in the Azure devOps pipelines. Junit report is visible under the 'Tests' tab. But there I see the tab "Allure report" and I want to implement that in my framework. How do I do it? I want to use my current Junit report to somehow visible in the "Allure Report" section so that I can make the report more interactive. Attached is the page in Azure devops I am talking about.

Azure devops Pipeline stats


Solution

  • How to implement Allure report in Azure Devops?

    You need to install Allure Test Reports extension first.

    Allure is based on standart xUnit results output but adds some supplementary data. Any report is generated in two steps. During test execution (first step) a small library called adapter attached to testing framework saves information about executed tests to XML files. Allure already provide adapters for popular Java, PHP, Ruby, Python, Scala and C# test frameworks.

    During report generation (second step) XML files are transformed to HTML report. This can be done with command line tool, plugin for CI or build tool.

    Here are examples and documentation for more details.