From 1b6ccf50d60585b137d8af6adbc521b94b0784b6 Mon Sep 17 00:00:00 2001 From: Paul Bender Date: Fri, 14 Feb 2020 01:35:34 -0500 Subject: [PATCH] improve error reporting of single test targets --- build.xml | 13 ++++++++++--- java/test/jmri/util/junit/PrintingTestListener.java | 7 ++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/build.xml b/build.xml index 08692b56c24..bff914772a7 100644 --- a/build.xml +++ b/build.xml @@ -738,7 +738,7 @@ - + @@ -748,8 +748,12 @@ + + + + @@ -773,10 +777,13 @@ + - + - + + + diff --git a/java/test/jmri/util/junit/PrintingTestListener.java b/java/test/jmri/util/junit/PrintingTestListener.java index d328923480f..f31d3acbc54 100644 --- a/java/test/jmri/util/junit/PrintingTestListener.java +++ b/java/test/jmri/util/junit/PrintingTestListener.java @@ -14,6 +14,7 @@ public class PrintingTestListener extends SummaryGeneratingListener { + /** * A {@link TextListener} implementation that can display the name * of run, failed and ignored tests run by JUnit @@ -27,7 +28,11 @@ public class PrintingTestListener extends SummaryGeneratingListener { * property is non-empty and non-false, the output is reduced to a minimal * summary. */ - + + public PrintingTestListener(){ + this(new PrintStream(System.out)); + } + public PrintingTestListener(PrintStream writer) { super(); this.writer = writer;