From be1a74e52f3db2d095fd782b937de5c4fc00b38e Mon Sep 17 00:00:00 2001 From: stijnpotters Date: Wed, 5 Nov 2025 14:30:02 +0100 Subject: [PATCH] fixed cypress test container --- .../frankframework/application/RunCypressE2eTest.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/frankframework/application/RunCypressE2eTest.java b/src/test/java/org/frankframework/application/RunCypressE2eTest.java index 6217092..5aa1072 100644 --- a/src/test/java/org/frankframework/application/RunCypressE2eTest.java +++ b/src/test/java/org/frankframework/application/RunCypressE2eTest.java @@ -116,9 +116,13 @@ static void tearDown() { Stream runCypressTests() throws InterruptedException, IOException, TimeoutException { CypressTestResults testResults = container.getTestResults(); - return testResults.getSuites() - .stream() - .map(this::createContainerFromSuite); + if (testResults.getNumberOfFailingTests() > 0) { + throw new AssertionError( + "Cypress tests failed! " + testResults.getNumberOfFailingTests() + " test(s) failed.\n\n" + + testResults); + } + + return testResults.getSuites().stream().map(this::createContainerFromSuite); } private DynamicContainer createContainerFromSuite(CypressTestSuite suite) {