maven-surefire-plugin Questions

2

Solved

Is there a way that I can pass this argLine configuration to the maven-surefire plugin ONLY when <jdk.version>1.7</jdk.version> is configured for Java 1.7 but NOT when a user changes th...
Grindelia asked 16/3, 2016 at 18:6

3

Solved

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 and options ... clean install -U -P cloudbees -P qa below is my pom.xml sure...
Melendez asked 23/2, 2015 at 21:10

1

Solved

If I do this: mvn -X \ -Dtest=MojoIntegrationTest \ -Dsurefire.trimStackTrace=false \ -Dsurefire.useFile=false \ clean test @BeforeEach public void setUp() { stuff(); } @Test public void tes...
Copaiba asked 22/8, 2017 at 9:15

2

Trying to get coverage via jacoco using offline instrumentation (can't use on-the-fly instrumentation: due to powermock testcases) for a maven project.Added the jacocoagent.jar to classpath in sure...
Mainstay asked 16/10, 2016 at 6:18

2

Solved

I was building project as usual with mvn clean install and following error happened: (File name too long) -> [Help 1] Full maven output: [INFO] ----------------------------------------------...
Redoubtable asked 23/2, 2017 at 13:1

8

Solved

Another instance of the NoSuchMethodError for the JUnit & Hamcrest combination. Offending code: assertThat(dirReader.document(0).getFields(), hasItem( new FeatureMatcher<IndexableField, St...
Chromite asked 5/4, 2013 at 11:40

2

Solved

I'm using Maven 3.2.3 on Mac 10.9.5 and have this for my compiler plugin ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</a...

1

I have a maven project with multiple modules and one common parent module. In this project there are some unit tests run with Junit together with surefire, as well as BDD Cucumber integration tests...
Repertory asked 23/1, 2017 at 21:38

1

I'm working on a scala project which use Maven to build and maven-surefire-plugin to run the tests written in scalatest. The tests are like: import org.scalatest.ParallelTestExecution @RunWith(c...
Sundries asked 22/9, 2015 at 7:47

2

Solved

I have a customized eclipse studio project. For unit testing we are creating a test file under - TestJavaSrc/demoTest.java Now this TestJavaSrc folder is on the same level as of POM.xml Here is...
Lucarne asked 15/11, 2016 at 13:11

3

Solved

I am working on a large multi-module Maven project. Each module has fast unit tests (using the Surefire plugin), many modules have slow integration tests (using the Failsafe plugin). I would like ...
Panchito asked 21/9, 2016 at 9:31

1

I can set the value of the parameter forkCount to any desired number, say 12, and I'd expect to have 12 new Java processes of type surefirebooter when running tests like these. But ps shows that I ...
Acrilan asked 6/10, 2016 at 9:53

1

Solved

I have a Kotlin application which I want to test. My tests (.kt) files execute with success in Eclipse. (The test itself is a h2 mock jdbc test). Now when running mvn test -X it says: releases...
Pedicle asked 27/9, 2016 at 11:41

4

I have 2 profiles that may or may not be used together to run a group of tests. They each require different vmargs to run, but if they are used together it's ok to have them appended to each other....
Largely asked 11/12, 2012 at 22:26

3

Solved

I am using Spock framework for testing (1.0-groovy-2.4 release). Junit offers this option to run a specific test using the command line (with Maven): mvn -Dtest=TestCircle#mytest test Question: ...
Pouliot asked 27/1, 2016 at 8:7

1

Solved

I would like to skip a single test (e.g. com.example.MyTest) when building a project with Maven from the command line. I'm aware of similar questions like this one, but they all require either mo...
Perigon asked 9/2, 2016 at 9:25

2

Solved

I'm unable to get the maven-surefire-report-plugin to generate the surefire-report.html when I run: mvn clean deploy site mvn clean site mvn site mvn clean install site The only time I've been a...
Helsa asked 21/2, 2012 at 23:39

2

Solved

I'm confused about the correct way to set a property for some unit tests via the command line when using Maven. There are a number of questions (e.g. Specifying Maven memory parameter without setti...
Archangel asked 11/1, 2016 at 8:2

1

In my project when I set reuseForks=true then i have to increase the forkCount to number of test classes. Otherwise, It is throwing illegalargument exception. Also, If I set reuseForks=false then ...
Clackmannan asked 8/1, 2016 at 19:19

1

Solved

With a view to managing / reducing our build times, I want to identify which unit tests are taking the most time - in a parallel test environment using the maven-surefire-plugin. We are using JUni...
Brittnee asked 7/1, 2016 at 11:53

3

Solved

What is the difference between Maven Surefire and Maven Failsafe plugins? I have searched all over web, but did not get the answer.
Bouie asked 11/3, 2015 at 11:55

1

Solved

I have placed a logback.xml in src/test/resources from my maven project. My intention is to have a separate logback config for my tests and actual code. My logback.xml looks like below:- <?xml ...
Poetess asked 10/12, 2015 at 7:41

1

Solved

Colleagues, I have @Ignore annotation in my test class AppTest.java. import java.math.BigInteger; import java.util.UUID; import org.fluttercode.datafactory.impl.DataFactory; import org.junit.Igno...
Trepidation asked 3/12, 2015 at 13:21

2

When using the maven-surefire-plugin and both includes and excludes, which order are they processed in? Furthermore, if you have 3 sets of tests, the first being the base set, the second and third ...
Titulary asked 14/8, 2012 at 19:15

1

Solved

UT = Unit Tests IT = Integration Tests. All my Integration test classes are annotated with @Category(IntegrationTest.class) My goal is: mvn clean install => runs UT and not IT mvn clean install...

© 2022 - 2024 — McMap. All rights reserved.