Top "Maven-surefire-plugin" questions

The Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application.

Cannot use jacoco JVM args and surefire JVM args together in maven

I am using maven with the jacoco plugin to generate code coverage metrics. I am having some difficulty in configuring …

maven jacoco maven-surefire-plugin
Surefire is not picking up Junit 5 tests

I wrote a simple test method with JUnit 5: public class SimlpeTest { @Test @DisplayName("Some description") void methodName() { // Testing logic for …

java maven junit maven-surefire-plugin junit5
IntelliJ Error when running unit test: Could not find or load main class ${surefireArgLine}

I get the following error when running Unit tests in IntelliJ: Error: Could not find or load main class ${surefireArgLine}. …

junit intellij-idea maven-surefire-plugin
Strategy for debugging surefire "The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?"

I am working on a rather complex java project with many dependencies and many unit tests. I am using java 1.6.0_65 …

java maven maven-surefire-plugin
How do I make Jenkins build fail when Maven unit tests fail?

I'm using Jenkins, Maven 3.1, and Java 1.6. I have the following Maven job set up in Jenkins with the following goals …

maven jenkins maven-surefire-plugin jenkins-build-flow
What is the difference between the Maven Surefire and Maven Failsafe plugins?

What is the difference between Maven Surefire and Maven Failsafe plugins? I have searched all over web, but did not …

maven maven-surefire-plugin maven-failsafe-plugin
How to run individual test in the integration-test target in maven

We have a hundreds of tests defined for our integration-test phase lifecycle in maven, and they take a long time …

maven-2 integration-testing maven-surefire-plugin
Maven Surefire plugin "Error occured in starting fork, check output in log"

I get the following error BUILD ERROR Error occured in starting fork, check output in log when using Maven 2.2.1 and …

java maven maven-2 maven-plugin maven-surefire-plugin
How to execute JUnit and TestNG tests in same project using maven-surefire-plugin?

Right now I have both type of tests but when I say "mvn test" it only executes TestNG tests and …

unit-testing maven-2 testng junit4 maven-surefire-plugin
Spring Boot fails to run maven-surefire-plugin ClassNotFoundException org.apache.maven.surefire.booter.ForkedBooter

Running maven (3.5.2) build of a Spring Boot 2.0.2.RELEASE applicaton (generated by web initialiser with web dependencies) fails executing the maven-surefire-plugin …

spring maven spring-boot maven-surefire-plugin