lidia
2012-06-06 00:15:31 UTC
Hi
I'm writing a utility to query test base for TestNG annotations, to list
tests that are part of a specific TestNG group. The trouble is, that when I
execute it through gradle all the messages written with System.out.println
are not displayed.
I searched online and found that this issue was fixed for *tests* only. I
added the following code to build.gradle, but it made no difference:
//makes the standard streams (err and out) visible at console when running
tests
test.testLogging.showStandardStreams = true
I also found, this workaround suggestion, but it doesn't work:
private static PrintStream echo = new PrintStream(new
FileOutputStream(FileDescriptor.out));
echo.println("Starting TestGroupScanner...");
Any pointers on how I can get anything printed to command line from gradle
appreciated.
Lidia
--
View this message in context: http://gradle.1045684.n5.nabble.com/Getting-stdout-messages-on-command-line-tp5709858.html
Sent from the gradle-user mailing list archive at Nabble.com.
I'm writing a utility to query test base for TestNG annotations, to list
tests that are part of a specific TestNG group. The trouble is, that when I
execute it through gradle all the messages written with System.out.println
are not displayed.
I searched online and found that this issue was fixed for *tests* only. I
added the following code to build.gradle, but it made no difference:
//makes the standard streams (err and out) visible at console when running
tests
test.testLogging.showStandardStreams = true
I also found, this workaround suggestion, but it doesn't work:
private static PrintStream echo = new PrintStream(new
FileOutputStream(FileDescriptor.out));
echo.println("Starting TestGroupScanner...");
Any pointers on how I can get anything printed to command line from gradle
appreciated.
Lidia
--
View this message in context: http://gradle.1045684.n5.nabble.com/Getting-stdout-messages-on-command-line-tp5709858.html
Sent from the gradle-user mailing list archive at Nabble.com.