surefire

Is there a decent HTML Junit report plugin for Maven?

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 test report in my browser. If I type mvn surefire-report:report-only, the generated report is too ugly and barely readable. What I'm looking fo...

Debugging maven junit tests with filtered resources?

We are using filtered testResources in JUnit-tests that are usually executed by the maven surefire plugin. That is, the pom contains a section <build> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> </testResource> </testResources> ... How c...

Maven test failure xml FileNotFoundException

My Maven build is failing on Hudson with a FileNotFoundException, I do not get the same failure through NetBeans. The FileNotFoundException is for some xml files in the same packages as my test classes themselves. It would appear these are not getting copied as part of the build in the same way the class files are. Do I have to add somet...

How do I make the manifest available during a Maven/Surefire unittest run "mvn test" ?

How do I make the manifest available during a Maven/Surefire unittest run "mvn test" ? I have an open-source project that I am converting from Ant to Maven, including its unit tests. Here's the project source repository with the Maven project: http://github.com/znerd/logdoc My question pertains to the primary module, called "base". Thi...

make maven's surefire show stacktrace in console

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

How to write something to surefire log with JUnit 4

Is it possible to write something from inside the test to surefire-reports/MyClass.txt ? Any kind of logger etc ? There is a Reporter in TestNG: Reporter.log("Something here"); and the message appears under test method in report. Is there something similiar in JUnit ...

maven surefire additionalClasspathElements single test

hi, 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 is. This works fine if the whole project is tested/build but it doesn't work while running single tests. The config file is not found in the classpath. here is...

TestNG Ant tasks vs Surefire

I was wondering how different surefire is when executing TestNG than TestNG ant tasks? The reason is that I am seeing consistent difference in behavior when trying to run a TestNG test that extends a JUnit test base (this is a workaround to run JBehave tests in TestNG described here: http://jbehave.org/documentation/faq/). Surefire detec...

Maven surefire plugin fork mode

By default maven surefile plugin run tests in isolated (forked) environment. You can override this behavior with following configuration: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>never</forkMode> <...

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

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

JUnit tests pass in Eclipse but fail in Maven Surefire

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 fail giving a spring related error. I am not sure what is causing the problem, JUnit, Surefire or Spring. Here is my test code, spring config...

run maven tests from classpath

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 declare that as a <scope>test</scope> dependency in another project, and expect the tests to run. No such luck. surefire wants to just run the tests that it can see in the sources. I ca...

Maven Surefire: Unable to fork parallel test execution

Hi, 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 my test cases to run in parallel. the first part is working without problem: I'm able to run each test case in its own JVM. the second part, however is still a challene ...

Failed to instantiate class<My_Class_Name> using org.apache.maven.surefire.booter.IsolatedClassLoader@135ae7e

I am trying to test that my two coherence clusters are communicating with each other successfully. Everything seems to be running fine besides the Proxys which throw the exception. Failed to instantiate class<My_Class_Name> using org.apache.maven.surefire.booter.IsolatedClassLoader@135ae7e I am trying to run the following command fro...

how to debug maven surefire test more easily (using eclipse as debug server)

I'm using maven / surefire / eclipse to write some code and later test / debug it. Standard way to do it is by using maven.surefire.debug maven property. By default, when this property is enabled, maven starts listening on port 5005 and I can attach to the debugged process using remote debugger. When the test finishes remote debugger di...

surefire forkMode causes only last test to be recorded in TestSuite.txt

I have the following in my pom.xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.6</version> <configuration> <excludes> <!-- exclude integration tests --> <exclude>**/IT*.j...

Logging level under maven surefire

Hi, I'm unable to adjust java logging's logging level. I'm using maven surefire (mvn test), and trying to adjust from the default INFO to e.g. FINEST. I have logging.properties file under src/test/resources/logging.properties after compile, i see under target/test-classes, i see a logging.properties file with the intended config: jav...

Generating html surefire test html output during test phase

Hi All- I'm not sure if this is a simple question or not, but I'd like surefire to generate html formatted output files(in addition to the xml and txt formatted output files) during the test phase. I've tried to make this happen by adding an 'executions' entry for build>surefire. Is this the correct location for this? If so, am I d...