stop adding test support classes to junit failure report

Review Request #3620 - Created March 27, 2016 and submitted

Information
Chris Heisterkamp
pants
fix-junit-failure-report
3102
Reviewers
pants-reviews
gmalmquist, zundel

Stop adding test support classes to junit failure report

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

Fix the JUnit failure report so it finds failures from tests in inner classes and stops adding test support classes to the failure report.

Before a failure in the JUnit tests would print

                     FAILURES!!!
                     Tests run: 77,  Failures: 1


FAILURE: 
    tests/java/org/pantsbuild/args4j:args4j
        org.pantsbuild.args4j.ArgfileOptionHandlerTest
        org.pantsbuild.args4j.BooleanOptionHandlerTest
        org.pantsbuild.args4j.CollectionOptionHandlerTest
        org.pantsbuild.args4j.ParserTest

    tests/java/org/pantsbuild/testing:testing
        org.pantsbuild.testing.EasyMockTestTest

    tests/java/org/pantsbuild/tools/jar:jar
        org.pantsbuild.tools.jar.JarBuilderTest
        org.pantsbuild.tools.jar.JarEntryCopierTest
        org.pantsbuild.tools.jar.OptionsTest

    tests/java/org/pantsbuild/tools/junit/impl:junit
        org.pantsbuild.tools.junit.impl.ConsoleRunnerTest#testNormalTesting
        org.pantsbuild.tools.junit.impl.ConsoleRunnerTestBase

    tests/java/org/pantsbuild/tools/runner:jar
        org.pantsbuild.tools.runner.PantsRunnerTest

And will now print only the failing test

                     FAILURES!!!
                     Tests run: 77,  Failures: 1


FAILURE: 
    tests/java/org/pantsbuild/tools/junit/impl:junit
        org.pantsbuild.tools.junit.impl.ConsoleRunnerTest#testNormalTesting
Eric Ayers
Stu Hood
Eric Ayers
Garrett Malmquist
Garrett Malmquist
Chris Heisterkamp
Review request changed

Status: Closed (submitted)

Loading...