gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 15:22:52 24 4
gpt4 key购买 nike

在哪里可以找到 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com