maven-2 - 在哪里可以找到 Surefire 生成的 XML (TEST-<testname>.xml) 文件的 DTD 或 XML 架构?

标签 maven-2 automated-tests maven surefire

在哪里可以找到 Surefire 生成的 XML (TEST-.xml) 文件的 DTD 或 XML 架构?

最佳答案

认为Maven正在使用Ant“拥有”的XML结果格式,并且不确定是否有官方的DTD或模式。来自 JUnit 4 XML schematized?在 JUnit 用户列表中:

There's a pretty standard format for JUnit XML output. You've probably seen it: there's a <testsuite> root element containing zero-or-more <testcase> elements, each of which may contain a <failure> or <error> element. (There's also a <properties> element with zero-or-more <property> elements.) A lot of tools know how to read this format and report on it, including at least Ant, Maven, Cruise Control, Hudson, Bamboo, Eclipse and IntelliJ IDEA.

Is this XML standardized anywhere in a DTD or XML Schema or something?

If there isn't a standard, could we go about making a standard and blessing it? (Perhaps JUnit 4.5 could include an XMLReporter that could be a reference implementation.)

In particular, I'm curious to know how one would represent that a test has been ignored in "standard" JUnit XML.

我从来没有找到这样的“标准”。和 在我看来,这是个好主意,就像你一样 使用您自己的报告来增强报告 信息并且仍然有工具 在职的。但如果你去 DTD/模式和验证然后这个 将停止工作。

另请参阅

相关问题

关于maven-2 - 在哪里可以找到 Surefire 生成的 XML (TEST-<testname>.xml) 文件的 DTD 或 XML 架构?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3362304/

相关文章:

java.lang.NoClassDefFoundError : org/w3c/tidy/Tidy , Maven项目

javascript - 如何在 Taiko JS 中编写异步动态 dropDown

loops - 无法验证分配子句 - Frama-C

java - 无法从 jacoco netbeans 获得任何代码覆盖率

maven - Cargo:run 如果指定了containerId,还需要指定containerUrl

maven-2 - 如何使用 maven-resources-plugin 避免二进制的 UTF-8 编码?

Maven 多模块执行点

testing - 与自动化测试用例相比,使用 CodedUI 测试的好处(通过 Action 记录)

java - 无法解决 Vaadin 7.6.2 与 Ivy 的依赖关系

jakarta-ee - 为什么在生成 ear 文件时使用父 pom 文件?