解析测试报告异常

Exception on parsing test reports

我将 jQA 扫描和分析插件添加到 Maven 构建中。现在我在构建时得到以下异常:

[INFO] Entering C:/.../target/surefire-reports [WARNING] Cannot parse document '/TEST-com...Test.xml': ParseError at [row,col]:[1,1] Message: Premature end of file. [ERROR] Cannot scan item /TEST-com...Test.xml java.util.NoSuchElementException: ParseError at [row,col]:[76,18] Message: The processing instruction target matching "[xX][mM][lL]" is not allowed. at com.sun.xml.internal.stream.XMLEventReaderImpl.next(XMLEventReaderImpl.java:252) at com.buschmais.jqassistant.plugin.junit.impl.scanner.TestReportScannerPlugin.scan(TestReportScannerPlugin.java:52) at com.buschmais.jqassistant.plugin.junit.impl.scanner.TestReportScannerPlugin.scan(TestReportScannerPlugin.java:28) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

我在 Windows 7 机器上使用 jQA v 1.0.0。 如果我打开测试报告 XML 个文件,它们看起来很正常。所以也许是竞争条件。

有什么提示吗?

issue 已在 1.1.0 中修复 - 原因是流缓存不正确。尽管记录了异常,但代表测试报告的数据在扫描后应该在数据库中可用。