From: Ben Soares Date: Thu, 2 May 2024 18:29:43 +0000 (+0100) Subject: JAL-4217 Added a timeout for testTasks. If timeout is exceeded then test execution... X-Git-Tag: Release_2_11_4_0~46^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ee0377aad94f5fc18281821bfbdd7c45aabbeeff;p=jalview.git JAL-4217 Added a timeout for testTasks. If timeout is exceeded then test execution should be interrupted. --- 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