如何控制WebTau报告

发布于 2025-02-08 23:37:24 字数 342 浏览 3 评论 0 原文

当我第一次使用WebTau时,它将在正在运行WebTau测试的项目目录中产生报告文件。使用WebTau的测试不再生成报告。

  • 有没有办法(手动)生成报告时(手动)conrol?
  • 我可以为此报告指定输出目录吗?

另外,关于我如何设法更改事物的另一个问题,该报告不再自动生成?我已经将一些常见的代码模式移动到了一个测试支持项目中,因为我发现在这个Ealry阶段,一堆测试几乎被切割。不过,另一个目录中没有报告文件。

另一个潜在的解释是,我在测试类中评论了 @webtau 注释。当我将休息呼叫模式移至库类时,我做到了。一切都很好,当然没有报告。我猜那将是一个线索。

When I first used WebTau it would produce a report file in the project directory where the WebTau tests were being run. Tests that use WebTau are no longer generating a report.

  • Is there a way to (manually) conrol when the report is produced?
  • Can I specify an output directory for this report?

Also, there is another question as to how I managed to change things and the report is no longer being generated automatically? I have moved some common code patterns into a TestingSupport project, because I found a bunch of tests were almost cut-n-paste at this ealry stage. There's no report file appearing in another directory though.

Another potential explaination is that I commented-out the @WebTau annotation on my test Class. I did that when I moved REST calling patterns to a library class. Everything works fine, of course there's no report. I'm guessing that is going to be a clue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少女情怀诗 2025-02-15 23:37:24

@webtau 注释对于Junit5生成报告至关重要。您需要注释要参加报告的任何课程。

另外,您可以尝试注册全局webtau扩展 org.testingisdocumenting.webtau.junit5.webtaujunitextension 之后#1-自动extension-registration“ rel =” nofollow noreferrer“> https://www.baeldung.com/junit-5-extensions#1-automation-extension-extension-extension-registration

使用 report path 配置值更改报告位置的配置

值可以使用 config file 或系统属性覆盖或使用环境变量

@WebTau annotation is essential for JUnit5 to generate the report. You need to annotate any class that you want to participate in the report.

Alternatively you can try to register global WebTau extension org.testingisdocumenting.webtau.junit5.WebTauJunitExtension following this JUnit5 guide: https://www.baeldung.com/junit-5-extensions#1-automatic-extension-registration

Use reportPath config value to change the report location

It can be specified using config file or system property override or using environment variable

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文