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.

Maven error occurred in starting fork, check output in log

I use Maven, docker-maven-plugin and Spring Boot. Right now I run into the following issue: [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ […

maven docker spring-boot windows-10 maven-surefire-plugin
How to exclude all JUnit4 tests with a given category using Maven surefire?

I intend on annotating some of my JUnit4 tests with an @Category annotation. I would then like to exclude that …

junit maven-2 junit4 maven-surefire-plugin
Running tests with maven packaging type "pom"

I'm having some issues running my unit tests when my pom is set to packaging type "pom". At first, it …

maven junit pom.xml maven-surefire-plugin
maven-surefire-plugin include/exclude precedence

When using the maven-surefire-plugin and both includes and excludes, which order are they processed in? Furthermore, if you have 3 sets …

java maven maven-3 pom.xml maven-surefire-plugin
Benefits of Maven FailSafe Plugin

I read Maven Failsafe plugin is designed specifically to run integration tests. Currently I'm working on a multi-module project and …

maven integration-testing testng maven-surefire-plugin maven-failsafe-plugin
Maven not running JUnit 5 tests

Im trying to get a simple junit test running with maven but it is not detecting any tests. Where am …

maven junit maven-surefire-plugin junit5
What does the "default-test" stand for in the maven-surefire plugin

I have defined the following configuration in my pom for surefire with TestNg: <plugin> <groupId>org.…

maven-3 testng maven-surefire-plugin
Maven surefire and JDK 11

I'm trying to get Maven surefire to run under JDK 11 but I keep getting these errors: If I set reuseForks …

java maven testing maven-surefire-plugin java-11
Set surefire plugin Locale in Maven pom file

I read in maven-surefire-plugin and default locale that Maven runs tests forked and thus might lose any locale you might …

maven locale maven-surefire-plugin
JUnit Test "Times Out" Despite Executing Quickly?

I've got a couple of test cases that JUnit is telling me time out in 10000ms when the whole test …

java junit junit4 maven-surefire-plugin