From ee0377aad94f5fc18281821bfbdd7c45aabbeeff Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 2 May 2024 19:29:43 +0100 Subject: [PATCH] JAL-4217 Added a timeout for testTasks. If timeout is exceeded then test execution should be interrupted. --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 3ed6c56..210a83c 100644 --- a/build.gradle +++ b/build.gradle @@ -1769,6 +1769,7 @@ task testTask0(type: Test) { preserveOrder true useDefaultListeners=true } + timeout = Duration.ofMinutes(1) } /* separated tests */ @@ -1781,6 +1782,7 @@ task testTask1(type: Test) { preserveOrder true useDefaultListeners=true } + timeout = Duration.ofMinutes(5) } task testTask2(type: Test) { @@ -1792,6 +1794,7 @@ task testTask2(type: Test) { preserveOrder true useDefaultListeners=true } + timeout = Duration.ofMinutes(5) } task testTask3(type: Test) { group = "Verification" @@ -1802,6 +1805,7 @@ task testTask3(type: Test) { preserveOrder true useDefaultListeners=true } + timeout = Duration.ofMinutes(5) } /* insert more testTaskNs here -- change N to next digit or other string */ @@ -1818,6 +1822,7 @@ task testTaskN(type: Test) { } */ + /* * adapted from https://medium.com/@wasyl/pretty-tests-summary-in-gradle-744804dd676c * to summarise test results from all Test tasks -- 1.7.10.2