Skip to content

Commit 1f07592

Browse files
committed
Revert "Adjust test to behavioral change in Gradle 9.0"
This reverts commit 905a7bb.
1 parent 54c79a4 commit 1f07592

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/GradleMissingEngineTests.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import org.junit.jupiter.api.Test;
2020
import org.junit.jupiter.api.io.TempDir;
21+
import org.junit.platform.reporting.testutil.FileUtils;
2122
import org.junit.platform.tests.process.OutputFiles;
2223
import org.opentest4j.TestAbortedException;
2324

@@ -40,8 +41,11 @@ void gradle_wrapper(@TempDir Path workspace, @FilePrefix("gradle") OutputFiles o
4041
.redirectOutput(outputFiles).startAndWait();
4142

4243
assertEquals(1, result.exitCode());
43-
assertThat(result.stdErr()) //
44-
.contains("FAILURE: Build failed with an exception.") //
44+
assertThat(result.stdErrLines()) //
45+
.contains("FAILURE: Build failed with an exception.");
46+
47+
var htmlFile = FileUtils.findPath(workspace, "glob:**/build/reports/tests/test/classes/*.html");
48+
assertThat(htmlFile).content() //
4549
.contains("Cannot create Launcher without at least one TestEngine");
4650
}
4751
}

0 commit comments

Comments
 (0)