google-nomulus/core
Michael Muller d14f0fe485
Output command test output as well as consuming it (#248)
* Output command test output as well as consuming it

CommandTestCase currently consumes stdout & stderr for the command being
tested.  Unfortunately, this results in us not being able to see the command
output.  Add an output splitter so that output gets written to the original
stream in addition to being captured.

A simpler approach would be to print the captured data after command
completion.  However, this won't work for tests that become hung and also
won't display results in real-time.

Tested: Ran a command test with verboseTestOutput=true, verified that standard
output was visible.

* Save and restore original stdout/err in cmd tests

We have to restore the original stdout/stderr print streams otherwise we end
up nesting them across tests which eventually causes the RDE tests to OOM.
2019-09-17 13:23:30 -04:00
..
gradle/dependency-locks Upgrade google-auth-library-java to latest version 2019-06-18 17:27:21 -04:00
src Output command test output as well as consuming it (#248) 2019-09-17 13:23:30 -04:00
build.gradle Add a task to run the nomulus tool (#262) 2019-09-12 08:09:32 -07:00
Dockerfile Build docker image of nomulus tool (#142) 2019-07-16 20:18:44 -04:00