Is there a way to force Maven Surefire or JUnit to indicate the name of the failing test class when executed from a Test Suite?
问题 My question: Is there a way to force Maven Surefire (or JUnit?) to indicate the name of the failing test class when this class has been executed from a Test Suite? Now, the long story. Imagine you have a JUnit test suite that launches two JUnit tests. Examples of test classes: public class TestOne { @Test public void foo() { assertTrue(false); } @Test public void bar() { assertTrue(false); } } @UnitTest public class TestTwo { @Test public void foo() { assertFalse(true); } } and the test suite