maven-surefire-plugin Questions

1

Solved

Is the maven surefire plugin needed to run unit tests when using the mvn clean test command? I read the documentation and know it says that: The Surefire Plugin is used during the test phase o...
Kirstinkirstyn asked 17/10, 2015 at 20:22

1

Solved

I want to run test classes whose name end with ResourceTest.java, so I defined following execution. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven...
Mesdemoiselles asked 1/10, 2015 at 10:9

2

Solved

I'm trying to migrate java project from maven to gradle. The problem is very tricky classpath dependency configuration for tests now. Our maven-surefire-plugin configuration: <includes> &...
Disarrange asked 25/8, 2015 at 15:47

1

Solved

I want to have different default logback configurations for my unit tests in Eclipse and Maven (surefire plugin). Basically, I want any logs generated during tests to be sent to the console in Ecli...
Orthogonal asked 18/9, 2015 at 18:21

1

Solved

I’m using Maven 3.2.3, JUnit 4.12, and SureFire 2.18.1 within Jenkins. I have a multi-module Maven job set up with the following Maven options: clean install -U -e -P qa -Dci -DskipITs However, ...
Disclimax asked 21/8, 2015 at 13:33

3

I'm using httpunit to access a server. I need to configure the proxy settings for this (http and https). I set the configuration in the settings.xml file, but surefire seems to ignore it!? I wan...
Councilwoman asked 24/11, 2011 at 18:12

3

I've got many test suites in TestNG. These are XML files. I want to be able to choose multiple XML suites when running integration-test from maven. Currently I can add the suite files to pom.xml l...
Orchestrate asked 9/7, 2012 at 14:38

1

I have a number of tests identified using the Spring @IfProfileValue flag @IfProfileValue{"a", "c"} @Test public void testA{ Do Stuff } @IfProfileValue{"a", "b"} @Test public void testB{ Do Stuff...
Disputatious asked 26/3, 2015 at 15:1

4

Solved

It appears that surefire and failsafe plugins execute test classes in order while tests defined within a class execute in undetermined order. To discover tests which rely on order (what we conside...
Gesticulative asked 30/1, 2014 at 15:58

1

Solved

Why do my tests throw random exceptions when I use the surefire setting parallel=methods ?
Neon asked 12/11, 2014 at 9:1

0

Is it possible to configure Surefire to log the stack trace in both, Console and File. By default everything is logged in Console. Using this parameter redirectTestOutputToFile=true, the log is red...
Artless asked 27/5, 2014 at 14:0

5

Solved

I have a project with several modules. When all tests pass, Maven test runs them all. When tests fail in the first module, maven will not continue to the next project. I have testFailureIgnore set ...
Seafood asked 13/11, 2010 at 21:8

5

While running of unit tests following exception occurs: org.apache.maven.lifecycle.LifecycleExecutionException: ExecutionException; nested exception is java.util.concurrent.ExecutionExcepti...
Jairia asked 25/9, 2012 at 15:3

1

Solved

I want to aggregate all surefire reports in separate modules. In my folder there are several module and I want to generate aggregated surefire report of all those modules. I could do this when I ex...
Baptista asked 26/2, 2014 at 19:17

3

In my code I have 2 types of tests: fast unit tests and slow performance tests. I am trying to ensure that the performance tests are never run unless the user explicitly wants to run them (e.g. usi...
Saxtuba asked 19/3, 2013 at 16:26

0

I have a project hierarchy which built with maven. How can I run all the tests in the whole hierarchy at once from eclipse and easily go to the failures? The maven surefire plugin spews loads of o...
Conformist asked 2/1, 2014 at 14:2

3

I am using Maven to build my project. I currently split testing into different hierarchies: Unit tests -> src/test/java/**/*Test.java Integration tests -> src/test-integration/java/**/*Test.java ...
Cygnet asked 19/12, 2013 at 4:12

1

Solved

I'd like to define project-wide interfaces, to be used in @Category annotations, and configure Maven to exclude their annotated tests when building the whole project. In the application project th...
Bounty asked 14/11, 2013 at 15:14

1

Solved

I am running the Maven 3.1.0 Surefire plugin already with the --quiet option, however it still prints out the results of unit tests out to the command line, even if they all pass. Is there a way to...
Fluff asked 28/8, 2013 at 13:17

4

Solved

I've got a couple of test cases that JUnit is telling me time out in 10000ms when the whole test run only lasts a couple of seconds. Here's the output: Tests run: 3, Failures: 0, Errors: 2, Skippe...
Bicentenary asked 10/6, 2013 at 2:4

3

Solved

I'd like to see the stacktrace of unit tests in the console. Does surefire support this?
Clam asked 28/5, 2010 at 11:31

2

Solved

I'm using maven surefire plugin to execute the junit tests of my application. I want to stop the execution after the first failure or error. In my case, these are integration tests that mod...
Dukie asked 5/4, 2013 at 17:2

1

I have a TestNG unit test that is intermittently failing. Is there a way to run a single unit test multiple times using the surefire plugin? If not, are there any suggestions on the best way to han...
Tipstaff asked 20/3, 2013 at 19:0

2

Solved

Now I'm running Maven 3.0.3 and it uses maven-surefire-plugin:2.7.2, but I want Maven to use a higher version of maven-surefire-plugin…
Canakin asked 12/3, 2013 at 11:5

1

Solved

I have a Grizzly HttpServer that I want to run for the entire duration of a test group execution. Additionally, I want to interact with the global HttpServer instance from a @Rule inside the tests ...
Stiles asked 8/2, 2013 at 11:35

© 2022 - 2024 — McMap. All rights reserved.