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) {