Skip to content

Commit

Permalink
now also reporting test script loading time in normal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
S1artie committed Jun 9, 2017
1 parent 098c1a6 commit cf7a355
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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<Future<List<Diagnostic>>> tempFutures = new ArrayList<>(tempAllResources.length);
Expand Down Expand Up @@ -377,7 +379,9 @@ public List<Diagnostic> 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));
}

});
Expand Down

0 comments on commit cf7a355

Please sign in to comment.