surefire Questions

2

I was trying building a Java plugin with Maven using Intellij IDEA until I came across an error: [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILUR...
Tildatilde asked 17/6, 2015 at 2:52

20

I have written some JUnit tests using JUnit 4 and spring-test libraries. When I run the tests inside Eclipse then run fine and pass. But when I run them using Maven (during the build process), they...
Antihelix asked 29/7, 2010 at 18:5

8

Solved

I'm currently working on a java project using maven. We use the maven surefire plugin to run our junit suite as part of the build process. Our test suite is rapidly growing, in both coverage and e...
Parrisch asked 17/12, 2009 at 19:0

2

I'd like Maven to stop trying to run my JUnit Spring tests when it encounters the first error. Is this possible? My test classes look like the following, and I run them just as a standard Maven ta...
Thievery asked 17/10, 2011 at 10:38

4

Solved

I'm using maven-surefire-report-plugin in order to generate the unit tests report. This is working fine however the report contains links to images which are not presented. How can I make maven cop...
Fantinlatour asked 29/1, 2014 at 13:34

5

We are building a large multi module Maven project on Jenkins, including running a large number of unit test. Once every few builds the build fails on NoClassDefFoundError on RunListener - which ...
Menagerie asked 1/12, 2014 at 9:20

10

Solved

I have a maven2 multi-module project and in each of my child modules I have JUnit tests that are named Test.java and Integration.java for unit tests and integration tests respectively. When I execu...
Gramps asked 9/9, 2009 at 11:56

13

Solved

For some reason I cannot get Maven 2 Surefire plugin to execute JUnit 4 test class. public class SimpleTest { @org.junit.Test public void simple() { System.out.println("foo"); } } However if...
Epidemiology asked 7/1, 2010 at 16:15

3

As far as I can tell, the test files location is correct. When I run "mvn test", it finds four classes named SomethingTest (they are located in the 'test' folder). However, it ignores any of the ...
Churchwell asked 13/11, 2010 at 19:27

6

Solved

I need to pass on following values … exeEvironment (Test environment) , testGroup (Group in testNG) from Command-Line -> POM -> TestNG -> Test cases. Based on these two posts .... pass a jav...
Ferromagnesian asked 6/11, 2012 at 6:14

2

Solved

As of Surefire 2.14 the forkMode configuration setting has been deprecated. They even helpfully provide a mapping from some of the old settings to new settings here (http://maven.apache.org/surefir...
Wheeled asked 17/10, 2016 at 22:0

4

Solved

I want to rerun a test that I know will fail cause I am trying to test the Surefire parameter for re-running the failing tests. I tried running Maven with these two commands neither of them works ...
Unhappy asked 24/11, 2016 at 12:0

8

Solved

I find the surefire-report plug-in very unsuitable to my working style. I clean the project all the time and I don't want to spend 5 min to rebuild the whole site every time I want to look at the t...
Lindsy asked 17/5, 2010 at 3:32

1

In my surefire configuration I have a classpathDependencyExcludes entry. For some reason Intellij does not seem to pick up this configuration (mvn test, does). Is there any way to have Intellij no...
Shackle asked 19/7, 2016 at 7:5

3

I have a multi-module maven project. The parent pom.xml is simply a way to reference common information for the 4 subprojects. I have quite a few JUnit tests that run and I also have the Parent Pro...
Enoch asked 13/8, 2009 at 20:56

6

Solved

I would like to skip only a single test while launching mvn install. Is there a way to do that ?
Terrijo asked 7/5, 2009 at 16:26

5

So we recently implemented a Nexus server for our maven repository manager. We proxy about 30 outside repositories and funnel them all into a single group, which we point to in the settings.xml in ...
Willson asked 23/10, 2012 at 16:0

4

When running my unit tests in Maven on windows i'm getting an OutOfMemory exception. I tried to add -XX:-HeapDumpOnOutOfMemoryError option to the surefire argLine, but no dump file is generated. I...
Polyhydroxy asked 4/1, 2011 at 18:12

3

Something like the following. I would like a way to skip my dao tests in surefire. Trying to avoid overhead of defining Suites. With CI I'd like to have one nightly that runs all tests and anothe...
Yea asked 8/12, 2010 at 16:24

5

Solved

I just installed the final version of Java 8. When I try to build my project with Maven, many tests fail if I use Java 8, but pass fine with Java 7. I've tried running it via the command line with ...
Lepore asked 19/3, 2014 at 0:26

6

Solved

In a unit test I need to import a csv file. This is located in the resources folder, i.e. src/test/resources
Decant asked 3/4, 2011 at 12:19

2

Solved

Where can i find the DTD or XML Schema of surefire generated XML (TEST-.xml) file?
Goldiegoldilocks asked 29/7, 2010 at 12:15

1

I'm trying to add report generation for code coverage using JaCoCo. The project is using Maven, so i have jacoco maven plugin configured like this: <plugin> <groupId>org.jacoco</g...
Animated asked 18/8, 2015 at 15:46

3

Solved

I am trying to run mvn test on my project. The project itself compiles and installs but man test fails with the following output: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-sure...
Helminthic asked 12/12, 2014 at 8:25

1

When upgrading from Surefire 2.6 to Surefire 2.13, I get a TypeNotPresentExceptionProxy when running my unit tests. java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionPro...
Djebel asked 1/2, 2013 at 23:2

© 2022 - 2024 — McMap. All rights reserved.