I am using Maven 3.0.3, JUnit 4.8.1 and Spring 3.1.1.RELEASE. I have a Surefire plugin configured this way.
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.14.1</version> <configuration> <reuseForks>false</reuseForks> <argLine>-Xmx2048m -XX:MaxPermSize=512M</argLine> </configuration> </plugin>
I notice that when my unit tests fail due to IllegalStateExceptions, Maven never prints out the names of tests that were not executed at the end of execution. I will see instead
mvn clean install ... Tests in error: ? IllegalState Failed to load ApplicationContext ? IllegalState Failed to load ApplicationContext ? IllegalState Failed to load ApplicationContext ? IllegalState Failed to load ApplicationContext
How can I get Mavne to print more details about testing errors? Right now I need to break through the directory of correct reports to find out what failed. Most of my JUnit tests look like this:
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration({ "classpath:test-context.xml" }) public class CleverTeacherServiceTest extends AbstractImportServiceTest {
source share