teikiteetini-vaysse Loic
03/14/2022, 4:21 PMImportJUnitXmlReports
to ingest some Nunit tests.
I feel like I'm almost there:
• the junit.xml report is created
• the task finalizer sees it (checked in debug + there is no No JUnit XML reports found in any of the declared inputs!
warning)
• but still my build scan is published without any test result
Any idea why or what to investigate here ?no
03/14/2022, 4:25 PMImportJUnitXmlReports
task?teikiteetini-vaysse Loic
03/14/2022, 4:32 PMImportJUnitXmlReports.register(tasks, testMsbuildTask, GENERIC)
and the test task declares the correct junit report directory as an ouptut
outputs.dir(junitReportDir)
and when I debug into ImportJUnitXmlReports
I can see it the report file is listed in xmlFiles
(GE 3.7.2) in this piece of code:
xmlFiles.stream().map((xml) -> {
return new ImportJUnitXmlReports.a(xml.getAbsoluteFile(), referenceTaskIdentity, dialect);
}).forEach(this::emitEvent);
no
03/14/2022, 4:39 PMImportJunitXmlReport
task executed?
What is the contents of junitReportDir
?teikiteetini-vaysse Loic
03/14/2022, 4:45 PMjunitReportDir
is set to ${buildDir}/junit
teikiteetini-vaysse Loic
03/14/2022, 4:46 PMThere was an error while importing the JUnit XML
java.lang.NullPointerException
at com.gradle.junit.xml.streaming.parser.h.e(SourceFile:307)
at com.gradle.junit.xml.streaming.parser.h.f(SourceFile:100)
at com.gradle.junit.xml.streaming.parser.g.a(SourceFile:56)
at com.gradle.junit.xml.streaming.parser.g.a(SourceFile:33)
at com.gradle.scan.plugin.internal.b.v.e.a(SourceFile:48)
at com.gradle.scan.plugin.internal.l.a$b.a(SourceFile:108)
at com.gradle.scan.plugin.internal.l.a$b.progress(SourceFile:98)
at com.gradle.scan.plugin.internal.l.a.a(SourceFile:60)
at com.gradle.scan.plugin.internal.l.l.a(SourceFile:42)
at com.gradle.scan.plugin.internal.l.c.a(SourceFile:84)
at com.gradle.scan.plugin.internal.l.g.a(SourceFile:45)
at com.gradle.scan.plugin.internal.q.a$a.a(SourceFile:31)
at com.gradle.scan.plugin.internal.q.a$a.a(SourceFile:20)
at com.gradle.scan.plugin.internal.q.a.c(SourceFile:67)
at java.lang.Thread.run(Thread.java:748)
teikiteetini-vaysse Loic
03/14/2022, 4:47 PMteikiteetini-vaysse Loic
03/14/2022, 4:54 PMteikiteetini-vaysse Loic
03/14/2022, 5:08 PMtimestamp
field on testsuite
is considered required by the Gradle Junit XML parser.no
03/14/2022, 5:49 PMEric Wendelin
timestamp
information from tests are necessary to translate the JUnit XML into the Gradle Enterprise tests model.
Which test runner are you using that generates JUnit XML without this timestamp information?teikiteetini-vaysse Loic
03/15/2022, 8:16 AMteikiteetini-vaysse Loic
03/16/2022, 3:59 PMThere was an error while importing the JUnit XML
java.lang.NullPointerException
at com.gradle.enterprise.a.a.b(SourceFile:23)
at com.gradle.junit.xml.streaming.parser.h.b(SourceFile:291)
at com.gradle.junit.xml.streaming.parser.h.f(SourceFile:138)
at com.gradle.junit.xml.streaming.parser.g.a(SourceFile:56)
at com.gradle.junit.xml.streaming.parser.g.a(SourceFile:33)
at com.gradle.scan.plugin.internal.b.v.e.a(SourceFile:48)
at com.gradle.scan.plugin.internal.l.a$b.a(SourceFile:108)
at com.gradle.scan.plugin.internal.l.a$b.progress(SourceFile:98)
at com.gradle.scan.plugin.internal.l.a.a(SourceFile:60)
at com.gradle.scan.plugin.internal.l.l.a(SourceFile:42)
at com.gradle.scan.plugin.internal.l.c.a(SourceFile:84)
at com.gradle.scan.plugin.internal.l.g.a(SourceFile:45)
at com.gradle.scan.plugin.internal.q.a$a.a(SourceFile:31)
at com.gradle.scan.plugin.internal.q.a$a.a(SourceFile:20)
at com.gradle.scan.plugin.internal.q.a.c(SourceFile:67)
at java.lang.Thread.run(Thread.java:748)
Eric Wendelin
teikiteetini-vaysse Loic
03/23/2022, 8:45 AMteikiteetini-vaysse Loic
03/24/2022, 1:08 PMEric Wendelin
teikiteetini-vaysse Loic
03/26/2022, 8:21 AMEric Wendelin