【问题标题】:reportNG does not generate the test-ouput folerreportiNG 不生成测​​试输出文件夹
【发布时间】:2016-02-24 04:57:10
【问题描述】:

我正在使用带有 reportNG 插件的 testNG 来测试结果。 在 eclipse testNG 设置中,我禁用了 testNG 报告作为默认侦听器并添加了 reportNG。

当我右键单击项目并以 testNG 运行时,我可以看到其中包含测试结果的 test-output/html 文件夹。 但这应该使用默认的 testng.xml。

如果我手动创建 testng.xml 并右键单击它,选择作为 testNG 套件运行,我可以看到运行通过,但找不到生成的 test-output/html 文件夹。

谁能告诉我这是什么原因,在哪里配置,我猜这可能只是 testNG 设置的一些问题,但现在确定在哪里。

感谢您的帮助。

【问题讨论】:

    标签: testng-eclipse reportng


    【解决方案1】:

    哎呀。我尝试添加

    <listeners>
        <listener class-name="org.uncommons.reportng.HTMLReporter" />
      </listeners>
    

    进入我手动创建的 testng.xml。现在可以了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-12
      • 2017-07-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多