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.

Review Request #2408 - Created June 23, 2015 and submitted

Information
Sara Solano
pants
sarasolano/test
1728
c6fbab2...
Reviewers
pants-reviews
fkorotkov, stuhood, tejal, zundel
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.

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
Eric Ayers
Sara Solano
Tejal Desai
Tejal Desai
Sara Solano
Eric Ayers
Sara Solano
Review request changed

Status: Closed (submitted)

Loading...