【问题标题】:JUnit @DisplayName not working in jenkins reportJUnit @DisplayName 在詹金斯报告中不起作用
【发布时间】:2021-05-28 05:23:39
【问题描述】:

我有一个 JUnit5 项目,我对测试类中的每个方法都使用了@DisplayName。 当我在 eclipse 中运行测试用例时,我可以在@DisplayName中看到使用给定名称生成的报告

当我在 jenkins 中测试它时,它会显示实际的方法名称。 但我需要显示@DisplayName。

jenkins中用于junit测试报告的插件->发布junit测试结果报告

Eclipse test result

Jenkins test result

【问题讨论】:

    标签: spring-boot jenkins junit5


    【解决方案1】:

    输入参数站点ID应该有一个非空的默认值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-03
      • 2015-11-15
      • 2015-01-26
      • 2021-10-19
      • 1970-01-01
      相关资源
      最近更新 更多