We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8553e70 commit 92b6a39Copy full SHA for 92b6a39
test-report/src/main/java/io/opentelemetry/instrumentation/testreport/FlakyTestReporter.java
@@ -201,7 +201,7 @@ private void scanTestResults(Path buildDir) throws IOException {
201
@Override
202
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
203
String name = file.getFileName().toString();
204
- if (name.startsWith("TEST-") && name.endsWith(".xml")) {
+ if (name.startsWith("TEST-") && name.endsWith(".xml") && file.toFile().length() > 0) {
205
scanTestFile(file);
206
}
207
0 commit comments