From cf7a355d7b6bcef99d6f61bd8001174009248409 Mon Sep 17 00:00:00 2001 From: Rene Schneider Date: Fri, 9 Jun 2017 17:47:00 +0200 Subject: [PATCH] now also reporting test script loading time in normal mode --- .../src/de/gebit/integrity/runner/TestModel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/de.gebit.integrity.runner/src/de/gebit/integrity/runner/TestModel.java b/de.gebit.integrity.runner/src/de/gebit/integrity/runner/TestModel.java index 262e2a603..45b21fb54 100644 --- a/de.gebit.integrity.runner/src/de/gebit/integrity/runner/TestModel.java +++ b/de.gebit.integrity.runner/src/de/gebit/integrity/runner/TestModel.java @@ -60,6 +60,7 @@ import de.gebit.integrity.runner.exceptions.ModelParseException; import de.gebit.integrity.runner.logging.TestRunnerPerformanceLogger; import de.gebit.integrity.runner.providers.InMemoryTestResourceProvider; +import de.gebit.integrity.utils.DateUtil; import de.gebit.integrity.utils.IntegrityDSLUtil; /** @@ -335,6 +336,7 @@ public void run() throws ModelLoadException { System.out.println("Now loading " + tempAllResources.length + " test script(s) using " + tempNumberOfThreads + " threads..."); + long tempStart = System.nanoTime(); ExecutorService tempExecutor = Executors.newFixedThreadPool(tempNumberOfThreads); List>> tempFutures = new ArrayList<>(tempAllResources.length); @@ -377,7 +379,9 @@ public List call() throws Exception { } System.out.println("Finished loading " + tempAllResources.length + " test script(s) with " - + tempErrors.size() + " error(s)..."); + + tempErrors.size() + " error(s) in " + + DateUtil.convertNanosecondTimespanToHumanReadableFormat(System.nanoTime() - tempStart, + false, false)); } });