maven-surefire-plugin Questions
1
Solved
I'm working on project where I need to perform some action before running each JUnit test. This problem was solved using RunListener that could be added to the JUnit core. The project assembly is d...
Dramaturge asked 10/1, 2013 at 21:40
1
Solved
I intend on annotating some of my JUnit4 tests with an @Category annotation. I would then like to exclude that category of tests from running on my Maven builds.
I see from the Maven documentation...
Hammad asked 3/1, 2013 at 2:12
2
I'm using Maven + Surefire + TestNG + Guice (latest stable ones)
I have "large" test that requires Guice to run.
Basically I'm doing it this way:
@Test(groups = "large")
@Guice(modules = FooLarge...
Merrymerryandrew asked 8/6, 2011 at 14:39
2
Solved
Is there some way to dry-run surefire?
Something which would list which tests would run, without running them.
The goal is, to know which tests (would) run in JBoss AS7 testsuite under certain conf...
Synthiasyntonic asked 4/11, 2011 at 16:36
2
Solved
I want to package my test package to jar file . How to execute generate test-jar from maven plugin Surefire.
Ill asked 10/10, 2012 at 21:11
2
Solved
I have Junit 4.8.2 and maven 3
Some tests in my application should fail the build in case of failure and some of them shouldn't (just report that the following optional tests failed)
How can I do ...
Swinger asked 24/9, 2012 at 10:24
1
Solved
A newbie question on Maven - Surefire - Eclipse - JUnit
I have configured the maven-surefire-plugin in the pom file of my project to pass some additional JVM arguments as below:
<plugin>
...
Halflife asked 12/9, 2012 at 16:50
1
Solved
When running mvn test maven won't run all Test Classes.
When I explicitly provide a class by adding -Dtest=PropertyTests the tests will be run.
Here's my pom.xml:
<configuration>
<inclu...
Evita asked 17/6, 2012 at 15:26
1
Solved
I'm currently working on a Maven-backed project. I've chosen TestNg to implement my unitary tests. In order to run my unitary tests at each Maven build, I have added the maven-surefire-plugin to my...
Conjure asked 21/5, 2012 at 15:12
1
Solved
We are using Maven in Hudson to run our Java build process and the Surefire plugin to execute JUnit tests however I've run into a problem with the unit tests for one project which requires native d...
Ss asked 19/4, 2012 at 10:21
1
Solved
After upgrading all my Maven plugins version for a project, I encountered the following problem: when I run the basic command mvn test -Dtest=SomeTest, the build finishes with no test executed at a...
Pamella asked 2/3, 2012 at 9:57
1
Solved
i exclude all tests in plugin except my test suite:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version...
Setup asked 27/2, 2012 at 7:42
2
Solved
I needed to move some src/test/java to src/main/java according to this recommandation from maven-jar-plugin documentation => http://maven.apache.org/plugins/maven-jar-plugin/usage.html
I did so be...
Radiothorium asked 24/1, 2012 at 12:36
1
Solved
I'm having some issues running my unit tests when my pom is set to packaging type "pom". At first, it was saying no goals needed for this project, so I added the maven-surefire-plugin to my pom.xml...
Despondency asked 12/1, 2012 at 22:48
1
I am developing an application in a ddd architecture using Spring LoadTimeWeaving feature. The problem is i can run my Junit tests using eclipse but not through Maven. I have tried all the options ...
Heuser asked 3/11, 2011 at 14:42
1
Solved
I'm using the surefire maven plugin to run unit tests. My test class looks like this:
public class Test1 {
@org.junit.Test
public void testThatFails(){
Assert.assertTrue("false is never true", ...
Ollieollis asked 10/8, 2011 at 19:2
3
Solved
I am seeing 'java.lang.OutOfMemoryError: PermGen space' while running ~300 JUnit tests and using Spring context. Having a tough time figuring out what's eating up PermGen since:
in steady state t...
Tuxedo asked 14/6, 2011 at 17:31
1
Solved
My project started to fail during the execution of mvn site:site since I updated the maven-surefire-report-plugin to version 2.8, which was just released a week or so ago.
Here is the exception:
...
Testimony asked 17/3, 2011 at 13:3
9
Using JUnit 4.8 and the new @Category annotations, is there a way to choose a subset of categories to run with Maven's Surefire plugin?
For example I have:
@Test
public void a() {
}
@Category(Sl...
Wheatworm asked 23/6, 2010 at 10:47
© 2022 - 2024 — McMap. All rights reserved.