Top "Surefire" questions

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

How do I get my Maven Integration tests to run

I have a maven2 multi-module project and in each of my child modules I have JUnit tests that are named …

java maven-2 testing surefire
Making Maven run all tests, even when some fail

I have a project with several modules. When all tests pass, Maven test runs them all. When tests fail in …

java maven-2 surefire
JUnit tests pass in Eclipse but fail in Maven Surefire

I have written some JUnit tests using JUnit 4 and spring-test libraries. When I run the tests inside Eclipse then run …

java spring maven-2 surefire spring-test
How to pass java code a parameter from maven for testing

I need to pass on following values … exeEvironment (Test environment) , testGroup (Group in testNG) from Command-Line -> POM -&…

maven command-line testng pom.xml surefire
How to get a test resource file?

In a unit test I need to import a csv file. This is located in the resources folder, i.e. …

java testing resources maven surefire
Surefire is not picking up Junit 4 tests

For some reason I cannot get Maven 2 Surefire plugin to execute JUnit 4 test class. public class SimpleTest { @org.junit.Test …

java maven-2 maven surefire
Is there a way to skip only a single test in maven?

I would like to skip only a single test while launching mvn install. Is there a way to do that ?

maven-2 surefire
Is there a decent HTML Junit report plugin for Maven?

I find the surefire-report plug-in very unsuitable to my working style. I clean the project all the time and I …

java maven-2 ant surefire
Logging level under maven surefire

I'm unable to adjust java logging's logging level. I'm using maven surefire (mvn test), and trying to adjust from the …

maven-2 junit surefire
TestNG surefire, run suite with maven command line

Is it possible to run a predefined xml suite from the command line through maven? I am able to run …

testing selenium-webdriver maven-2 testng surefire