Mercurial > hg > monetdb-java
changeset 569:73dbd211a3ba onclient
Make current test name accessible
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Mon, 04 Oct 2021 12:20:19 +0200 (2021-10-04) |
parents | b4d29515c22e |
children | 721b7b109ecc |
files | tests/TestRunner.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/TestRunner.java +++ b/tests/TestRunner.java @@ -21,6 +21,7 @@ public class TestRunner { public static final int VERBOSITY_SHOW_ALL = 2; protected final String jdbcUrl; private final int verbosity; + protected String currentTestName; protected final WatchDog watchDog; protected MonetConnection conn; private Statement stmt; @@ -95,6 +96,7 @@ public class TestRunner { } private synchronized boolean runTest(String testName, Method method) throws SQLException { + currentTestName = testName; watchDog.setContext("test " + testName); watchDog.setDuration(3_000); outBuffer = new StringWriter();