surefire « Development « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » Development » surefire 

1. Maven 2.1.0 not passing on system properties to Java virtual machine    stackoverflow.com

We use the command line to pass on system properties to the Java virtual machine when running our Hudson builds on a Linux box. It used to work quite ...

2. Is there a way to skip only a single test in maven?    stackoverflow.com

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

3. Maven Multi-Module builds not honoring failsafe-maven-plugin?    stackoverflow.com

I recently discovered that Hudson was not the problem. In actuality it was Maven itself as the multi-module build was causing the build failure, not Hudson. I just hadn't ...

4. Why is Maven failing with a SurefireExecutionException: > Cannot set option parallel with value    stackoverflow.com

Hi I am working through the tutorial here using windows XP and latest builds http://binil.wordpress.com/2006/12/08/automated-smoke-tests-with-selenium-cargo-testng-and-maven/ Could someone please tell me what the tags are.

<parallel>true</parallel>
<threadCount>10</threadCount>
When I build with these tags included I ...

5. make maven's surefire show stacktrace in console    stackoverflow.com

Id like to see stacktrace of unit tests in console, does surefire support this?

6. maven surefire additionalClasspathElements single test    stackoverflow.com

I have one main and one test config file which is shared by several maven projects. While testing, I am specifying the classpath to the directory where the test config file ...

7. Where can i find the DTD or XML Schema of surefire generated XML (TEST-.xml) file?    stackoverflow.com

Where can i find the DTD or XML Schema of surefire generated XML (TEST-.xml) file?

8. run maven tests from classpath    stackoverflow.com

In order to clean up something of a giant mess, I set out to put the code of my tests all in one ordinary java project (all in src/main/java), and then ...

9. Maven Surefire: Unable to fork parallel test execution    stackoverflow.com

using Maven surefire, I'm unable to fork parallel test execution. That is, each of my test cases hs to run in a serapate JVM, hence the forking. In addition, I want ...

10. Making Maven run all tests, even when some fail    stackoverflow.com

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 ...

11. Order of Maven+Surefire+Testng - BeforeClass, BeforeTest, Test, Test, AfterTest, AfterClass    stackoverflow.com

I expected the following output:

Running TestSuite
[DEBUG] beforeClass
[DEBUG] beforeTest
[DEBUG] test
[DEBUG] afterTest
[DEBUG] beforeTest
[DEBUG] test
[DEBUG] afterTest
[DEBUG] afterClass
But instead, this actually happens. Notice 2 problems: BeforeClass runs after BeforeTest. Second, Before/AfterTest runs once.
Running TestSuite
[DEBUG] beforeTest
[DEBUG] ...

12. How to split maven-surefire-plugin execution to two separate executions?    stackoverflow.com

This is what I'm trying to do:

[...]
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.5</version>
  <configuration>
    <excludes>
      <exclude>**/*JSFTest.java</exclude>
    </excludes>
   ...

14. How to invoke maven-surefire-plugin programatically    stackoverflow.com

I am trying to invoke maven-surefire-plugin programatically. However I have to specify a dependency to junit library and a test classpath. I can specify a dependency to junit library in pom.xml ...

15. surefire HeapDumpOnOutOfMemoryError    stackoverflow.com

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 ...

16. maven - skipping test for child project    stackoverflow.com

I have maven-based project that consists of parent module (P) and 3 child modules (C1,C2,C3). The child modules dependencies look as follows: C1->C2->C3 (C1 deppends on C2 etc). Only C1 pom has the ...

17. Maven/TestNG reports "Failures: 0" but then "There are test failures.", what's wrong?    stackoverflow.com

I'm using Maven 2.2.1 r801777, Surefire 2.7.1, TestNG 5.14.6, Java 1.6.0_11 on Win XP. I have only one test class with one empty test method and in my pom I have just ...

18. Maven Surefire: run a single unit test    stackoverflow.com

I know that it's possible to run a specific test class with -Dtest=MyTest. But is it possible to run a specific test within that class? I.e. if MyTest defines testFoo() and ...

19. Running different test suites using testng and maven    stackoverflow.com

I am using TestNg and Maven with the surefire plugin to run my tests. I have several different components that I want to be able to run at different times ...

20. How to make surefire-report link to the failure line in the source code    stackoverflow.com

I am trying to make the generated surefire reports, link to the line in source code, where the error took place. I have followed everything mentioned on the plugins documentation over ...

21. Excluding TestNG Groups From Maven    stackoverflow.com

I have some slow tests that rely on the database that I don't want run every time I build my project with Maven. I've added the excludedGroups element to my pom ...

22. Maven Surefire with different file sets    stackoverflow.com

I have two kinds of Unit tests (not integration test). Because of some strange behaviour with Spring Security I need to run first all normal tests, and later on the security ...

23. Does Maven Surefire execute test cases sequentially by default?    stackoverflow.com

This is a follow up to this question which I realized when I dug deeper into my research: Is it reasonable to suppose that the Maven Surefire plugin executes test cases ...

24. Maven: How to workaround Surefire's -Dtest overriding includes and excludes?    stackoverflow.com

I have two surefire executions in one profile - they need different config. When I run -Dtest=..., the matching test is running twice - once for each execution. How can I make the ...

25. Maven: Surefire --dry-run?    stackoverflow.com

Is there some way to dry-run surefire? Something which would list wich tests would run, without running them. The goal is, to know which tests (would) run in AS7 testsuite under certain config. ...

26. Output failed test details to stdout using maven surefire    stackoverflow.com

When I run my build using maven 2

mvn clean install
my tests are run by surefire plug-in. In case test failed I get the following output:
Results :

Failed tests: 
  test1(com.my.MyClassTest)

Tests run: ...

27. Maven + Surefire: proxy configuration    stackoverflow.com

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 ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.