commit 25896e7c3d1b154078ee9b1c6080afca0fb97061 Author: Sara Solano Date: Wed Jun 24 15:54:07 2015 -0400 Add a more verbose description of tests when running the -per-test-timer commnand. I have added this change to the PerClassConsoleListener and I have also changed the name to PerTestConsoleListener. Testing Done: When running the test command with the -per-test-timer option the user was shown a trail of dots. By adding the name of the specific test being ran there is a better description of the which tests are passing and which are not. Input: ./pants test --test-junit-per-test-timer ./examples/tests/java:: Ouput: ``` [junit] [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 4 processors, using -parallel-threads=4 checkDistanceExistence(org.pantsbuild.example.useproto.UseProtoTest) makeItRain(org.pantsbuild.example.usethrift.UseThriftTest) checkDistanceExistence(org.pantsbuild.example.useprotoimports.UseImportsTest) testExpression(org.pantsbuild.example.useantlr.Antlr4Test) veggieTest(org.pantsbuild.example.usejaxb.UseJaxbTest) checkTemperatureExistence(org.pantsbuild.example.usewire.UseWireTest) testExpression(org.pantsbuild.example.useantlr.Antlr3Test) mentionGreetee(org.pantsbuild.example.hello.greet.GreetingTest) mentionGreeteeFromResource(org.pantsbuild.example.hello.greet.GreetingTest) shouldSayHello(org.pantsbuild.example.hello.greet.GreetingTest) ``` Input: ./pants test --test-junit-per-test-timer ./examples/tests/java/org/pantsbuild/example:: Ouput: ``` [junit] [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 4 processors, using -parallel-threads=4 checkDistanceExistence(org.pantsbuild.example.useproto.UseProtoTest) makeItRain(org.pantsbuild.example.usethrift.UseThriftTest) checkDistanceExistence(org.pantsbuild.example.useprotoimports.UseImportsTest) testExpression(org.pantsbuild.example.useantlr.Antlr4Test) veggieTest(org.pantsbuild.example.usejaxb.UseJaxbTest) checkTemperatureExistence(org.pantsbuild.example.usewire.UseWireTest) testExpression(org.pantsbuild.example.useantlr.Antlr3Test) mentionGreetee(org.pantsbuild.example.hello.greet.GreetingTest) mentionGreeteeFromResource(org.pantsbuild.example.hello.greet.GreetingTest) shouldSayHello(org.pantsbuild.example.hello.greet.GreetingTest) testThatFails(org.pantsbuild.example.hello.greet.GreetingTest) -> FAILED Time: 0.679 There was 1 failure: 1) testThatFails(org.pantsbuild.example.hello.greet.GreetingTest) [Stack Trace of failure] FAILURES!!! Tests run: 11, Failures: 1 ``` Bugs closed: 1728 Reviewed at https://rbcommons.com/s/twitter/r/2408/ .../tools/junit/impl/ConsoleRunnerImpl.java | 4 +- .../tools/junit/impl/PerTestConsoleListener.java | 46 ++++++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-)