Enable autoFlush for JUnit printstream so we get output as the tests run

Review Request #4102 - Created July 20, 2016 and submitted

Information
Chris Heisterkamp
pants
flush-test-buffer
3698
Reviewers
pants-reviews
jsirois, kwlzn, zundel

Enable autoFlush for JUnit printstream so we get output as the tests run

Without autoFlush the buffer is never flushed and we get no output during the test run.

Travis CI: https://travis-ci.org/pantsbuild/pants/builds/146186132

And installing the new junit-runner.jar and running java tests in the Pants repo.

In regards to the speedup in https://rbcommons.com/s/twitter/r/4101/

The tests are not as fast with the autoFlush enabled but hopefully they are fast enough?

$ ./pants test.junit tests/java/org/pantsbuild/tools/junit/impl/::
...
11:40:57 00:15       [run]
                     Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
                     Java HotSpot(TM) 64-Bit Server VM warning: ignoring option UseSplitVerifier; support was removed in 8.0
                     Auto-detected 8 processors, using -parallel-threads=8
                     ........................................................................................................................................................................................................................................................................................................................................................................................
                     Time: 148.382

                     OK (376 tests)
Stu Hood
Eric Ayers
Chris Heisterkamp
John Sirois
Eric Ayers
Chris Heisterkamp
Review request changed

Status: Closed (submitted)

Change Summary:

submitted as commit: 0ed2684eb8e5aafc1eabac21f52475203c883913

Loading...