【问题标题】:Failed tests with assertion error displayed as broken in allure带有断言错误的失败测试显示为诱惑中的损坏
【发布时间】:2020-09-21 11:23:18
【问题描述】:

在测试结果中:

junit.framework.AssertionFailedError: 预期: 但是是:

在魅力中:

测试失败

我需要让它在 Allure 中失败。

【问题讨论】:

    标签: junit5 allure


    【解决方案1】:

    你的 pom.xml 中有这个插件吗? 如果没有,请尝试添加

    <plugin>
    <groupId>io.qameta.allure</groupId>
    <artifactId>allure-maven</artifactId>
    <version>2.9</version>
    <configuration>
    <reportVersion>2.6.0</reportVersion>
    </configuration>
    </plugin>
    

    【讨论】:

      猜你喜欢
      • 2021-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-29
      相关资源
      最近更新 更多