如何使用诱惑报告框架将xml转换为html

时间:2016-02-02 10:50:35

标签: allure

我使用maven和testng进行诱惑报告 在测试运行之后,我有xml.file和报告结果,任何人都可以解释我的流程将其转换为HTML吗?

1 个答案:

答案 0 :(得分:0)

Add below in case you do not have this in your pom.xml.

<reporting>
      <excludeDefaults>true</excludeDefaults>
      <plugins>
         <plugin>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-maven-plugin</artifactId>
            <version>${allure.maven.version}</version>
            <configuration>
               <resultsPattern>${allure.results_pattern}</resultsPattern>
            </configuration>
         </plugin>
      </plugins>
   </reporting>

Then, re-run your test and run this command, mvn site -Dallure.results_pattern=allure-results

This will create a site folder under which you should get allure-maven-plugin.html. This is what you want i think.