在 Netbeans IDE 中显示 grails 测试结果
有人知道可以在 netbeans IDE 的“测试结果”窗口中显示 grails 项目的单元测试结果吗?测试结果作为 JUnit XML 文件保存在项目文件夹中。
does anybody know a possibility to show the Unit-Test results of a grails project in the "Test Result"-Window of the netbeans IDE? The test results are saved in the project folder as JUnit XML Files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来并没有像 Ruby 这样的集成。
对于 Java 项目,IDE 不会等待 XML 文件写入构建目录;而是等待将 XML 文件写入构建目录。它侦听 Ant
任务中的特殊事件并立即报告它们。我认为一般来说,在 Groovy 支持方面没有做太多工作,但也许有人可以编写一个插件,只等待
TEST-*.xml
出现在某个构建目录中,并在 Test 中显示它们结果。这需要使用 org.netbeans.modules.gsf.testrunner API(当前未发布供公众使用)。这样的插件不仅对 Grails 用户来说很方便。It does not look like there is any such integration like there is for e.g. Ruby.
For Java projects, the IDE does not wait for XML files to be written to a build directory; it listens for special events in the Ant
<junit>
task and reports them immediately.I do not think much work is being done on the Groovy support generally, but perhaps someone could write a plugin which just waits for
TEST-*.xml
to appear in some build directory, and displays them in Test Results. This would require using the org.netbeans.modules.gsf.testrunner API (currently not published for public use). Such a plugin could be handy not just for Grails users.它位于项目窗口的 target/test-reports/html/index.html 中。只需右键单击它并选择查看即可。
It is in the target/test-reports/html/index.html from project window. Just right click on it and choose view.