<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-21511</id>
	<title>Nabble - Surefire</title>
	<updated>2009-11-05T11:06:40Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Surefire-f21511.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Surefire-f21511.html" />
	<subtitle type="html">&lt;a href=&quot;http://maven.apache.org/surefire/surefire-api/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Surefire&lt;/a&gt;&amp;nbsp;is a test framework project and belongs to the Apache Software Foundation.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26220744</id>
	<title>Help with classpath issue</title>
	<published>2009-11-05T11:06:40Z</published>
	<updated>2009-11-05T11:06:40Z</updated>
	<author>
		<name>Ben Douglas</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I'm currently running Maven 2.2.1. &amp;nbsp;When I try to put a 
&lt;br&gt;META-INF/hibernate.xml in the testResources directory (and therefore get 
&lt;br&gt;copied over to the test-classes/META-INF dir) all the tests fail looking 
&lt;br&gt;for a NamedQuery that is in one of my classes. &amp;nbsp;However, when I run 
&lt;br&gt;without the META-INF (and a clean before hand) the tests find the 
&lt;br&gt;NamedQuery in the classes directory just fine. &amp;nbsp;I've also found that if 
&lt;br&gt;I copy over all the source classes into the test-classes directory with 
&lt;br&gt;the META-INF/hibernate.xml the tests pass as well. &amp;nbsp;It *looks* like the 
&lt;br&gt;target/classes directory is put in the classpath that surefire gets, but 
&lt;br&gt;not sure if it's setting up correctly or not.
&lt;br&gt;&lt;br&gt;Please let me know if any more information is needed, or if this should 
&lt;br&gt;be a thread in another project... just figured I'd start here ;)
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ben
&lt;br&gt;&lt;br&gt;Here's the surefire...tmp file that sets up the classPath:
&lt;br&gt;&lt;br&gt;#surefire
&lt;br&gt;#Thu Nov 05 14:00:14 GMT-05:00 2009
&lt;br&gt;enableAssertions=true
&lt;br&gt;report.0.types=java.lang.Boolean
&lt;br&gt;report.2.types=java.io.File|java.lang.Boolean
&lt;br&gt;report.0.params=true
&lt;br&gt;report.1.types=java.io.File|java.lang.Boolean
&lt;br&gt;testSuite.0.params=/home/bdouglas/eclipse-ws/RegressionSystem/TestcaseManager/target/test-classes|[**/Test*.java, 
&lt;br&gt;**/*Test.java, **/*TestCase.java]|[**/*$*]
&lt;br&gt;report.1.params=/home/bdouglas/eclipse-ws/RegressionSystem/TestcaseManager/target/surefire-reports|true
&lt;br&gt;classPathUrl.39=/home/bdouglas/.m2/repository/org/jvnet/mimepull/1.2/mimepull-1.2.jar
&lt;br&gt;classPathUrl.38=/home/bdouglas/.m2/repository/com/sun/org/apache/xml/internal/resolver/20050927/resolver-20050927.jar
&lt;br&gt;classPathUrl.37=/home/bdouglas/.m2/repository/com/sun/xml/stream/sjsxp/1.0.1/sjsxp-1.0.1.jar
&lt;br&gt;classPathUrl.36=/home/bdouglas/.m2/repository/org/jvnet/staxex/stax-ex/1.2/stax-ex-1.2.jar
&lt;br&gt;classPathUrl.35=/home/bdouglas/.m2/repository/com/sun/xml/stream/buffer/streambuffer/0.7/streambuffer-0.7.jar
&lt;br&gt;classPathUrl.34=/home/bdouglas/.m2/repository/com/sun/xml/messaging/saaj/saaj-impl/1.3.1/saaj-impl-1.3.1.jar
&lt;br&gt;report.2.params=/home/bdouglas/eclipse-ws/RegressionSystem/TestcaseManager/target/surefire-reports|true
&lt;br&gt;classPathUrl.33=/home/bdouglas/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.7/jaxb-impl-2.1.7.jar
&lt;br&gt;classPathUrl.32=/home/bdouglas/.m2/repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar
&lt;br&gt;surefireClassPathUrl.2=/home/bdouglas/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar
&lt;br&gt;classPathUrl.31=/home/bdouglas/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
&lt;br&gt;surefireClassPathUrl.1=/home/bdouglas/.m2/repository/junit/junit/4.0/junit-4.0.jar
&lt;br&gt;classPathUrl.30=/home/bdouglas/.m2/repository/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar
&lt;br&gt;surefireClassPathUrl.0=/home/bdouglas/.m2/repository/org/apache/maven/surefire/surefire-junit4/2.4.3/surefire-junit4-2.4.3.jar
&lt;br&gt;classPathUrl.9=/home/bdouglas/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
&lt;br&gt;classPathUrl.8=/home/bdouglas/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar
&lt;br&gt;classPathUrl.7=/home/bdouglas/.m2/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar
&lt;br&gt;classPathUrl.6=/home/bdouglas/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
&lt;br&gt;classPathUrl.5=/home/bdouglas/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
&lt;br&gt;classPathUrl.4=/home/bdouglas/.m2/repository/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.jar
&lt;br&gt;classPathUrl.3=/home/bdouglas/.m2/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar
&lt;br&gt;classPathUrl.2=/home/bdouglas/.m2/repository/junit/junit/4.5/junit-4.5.jar
&lt;br&gt;classPathUrl.1=/home/bdouglas/eclipse-ws/RegressionSystem/TestcaseManager/target/classes
&lt;br&gt;report.2=org.apache.maven.surefire.report.XMLReporter
&lt;br&gt;classPathUrl.0=/home/bdouglas/eclipse-ws/RegressionSystem/TestcaseManager/target/test-classes
&lt;br&gt;childDelegation=false
&lt;br&gt;report.1=org.apache.maven.surefire.report.BriefFileReporter
&lt;br&gt;report.0=org.apache.maven.surefire.report.ForkingConsoleReporter
&lt;br&gt;classPathUrl.29=/home/bdouglas/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
&lt;br&gt;classPathUrl.28=/home/bdouglas/.m2/repository/javax/xml/stream/stax-api/1.0/stax-api-1.0.jar
&lt;br&gt;classPathUrl.27=/home/bdouglas/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
&lt;br&gt;classPathUrl.26=/home/bdouglas/.m2/repository/javax/xml/ws/jaxws-api/2.1/jaxws-api-2.1.jar
&lt;br&gt;classPathUrl.25=/home/bdouglas/.m2/repository/com/sun/xml/ws/jaxws-rt/2.1.4/jaxws-rt-2.1.4.jar
&lt;br&gt;classPathUrl.24=/home/bdouglas/.m2/repository/mysql/mysql-connector-java/5.1.10/mysql-connector-java-5.1.10.jar
&lt;br&gt;classPathUrl.23=/home/bdouglas/.m2/repository/c3p0/c3p0/0.9.1.2/c3p0-0.9.1.2.jar
&lt;br&gt;classPathUrl.22=/home/bdouglas/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
&lt;br&gt;classPathUrl.21=/home/bdouglas/.m2/repository/org/slf4j/slf4j-log4j12/1.4.2/slf4j-log4j12-1.4.2.jar
&lt;br&gt;classPathUrl.20=/home/bdouglas/.m2/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
&lt;br&gt;failIfNoTests=false
&lt;br&gt;useManifestOnlyJar=true
&lt;br&gt;classPathUrl.19=/home/bdouglas/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar
&lt;br&gt;classPathUrl.18=/home/bdouglas/.m2/repository/org/hibernate/hibernate-core/3.3.0.SP1/hibernate-core-3.3.0.SP1.jar
&lt;br&gt;testSuite.0.types=java.io.File|java.util.ArrayList|java.util.ArrayList
&lt;br&gt;classPathUrl.17=/home/bdouglas/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
&lt;br&gt;classPathUrl.16=/home/bdouglas/.m2/repository/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar
&lt;br&gt;classPathUrl.15=/home/bdouglas/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
&lt;br&gt;classPathUrl.14=/home/bdouglas/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
&lt;br&gt;classPathUrl.13=/home/bdouglas/.m2/repository/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
&lt;br&gt;classPathUrl.12=/home/bdouglas/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar
&lt;br&gt;classPathUrl.11=/home/bdouglas/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar
&lt;br&gt;classPathUrl.10=/home/bdouglas/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
&lt;br&gt;testSuite.0=org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite
&lt;br&gt;classPathUrl.40=/home/bdouglas/.m2/repository/log4j/apache-log4j-extras/1.0/apache-log4j-extras-1.0.jar
&lt;br&gt;useSystemClassLoader=true
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-with-classpath-issue-tp26220744p26220744.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26218448</id>
	<title>deploy rpm to rpm repository using maven + mojo rpm plugin</title>
	<published>2009-11-05T08:59:41Z</published>
	<updated>2009-11-05T08:59:41Z</updated>
	<author>
		<name>Tranquil</name>
	</author>
	<content type="html">Hi guys,
&lt;br&gt;&lt;br&gt;i'm just starting to play around with maven as a candidate for our whole
&lt;br&gt;build/deploy system for java applications.
&lt;br&gt;&lt;br&gt;we're been programming so far using Perl, &amp;nbsp;packaging with Rpm on Fedora and
&lt;br&gt;Deploying it though a local yum repository.
&lt;br&gt;&lt;br&gt;&lt;br&gt;We still haven't decided if we could ditch the yum/rpm idea all together and
&lt;br&gt;swith to mvn repository,
&lt;br&gt;but in case we won't,
&lt;br&gt;&lt;br&gt;Do you know* i**f there is a way to config mvn to upload the rpm (using
&lt;br&gt;SCP?) to the yum repository* after
&lt;br&gt;it finished building the RPM (today we use a build system based on make
&lt;br&gt;files and in the end it scp's the rpm to the repository and run make there
&lt;br&gt;to update the list of rpms).
&lt;br&gt;&lt;br&gt;thank you.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Eyal Edri
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/deploy-rpm-to-rpm-repository-using-maven-%2B-mojo-rpm-plugin-tp26218448p26218448.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25989676</id>
	<title>Using apache ant inside a surefire test</title>
	<published>2009-10-21T03:02:01Z</published>
	<updated>2009-10-21T03:02:01Z</updated>
	<author>
		<name>Kriegelstein, Thomas</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I didn't &amp;nbsp;find a solution or even suggestion online to the following
&lt;br&gt;issue I'm having. I've developed a small ant-Task and build it with
&lt;br&gt;maven2. The ant task is supposed to throw a BuildException under certain
&lt;br&gt;circumstances. To test the task, I've created two junit tests, which
&lt;br&gt;invoke ant's Launcher during their test methods. One invocation is
&lt;br&gt;expected to pass, one is expected to fail and produce the
&lt;br&gt;BuildException.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Within the test method, I've surrounded the invocation to the Launchers
&lt;br&gt;run method with try and catch, the Exception still propagates to
&lt;br&gt;surrounding surefire plugin and causes the maven2 build to fail.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;What should I do, to prevent the surefire plugin from seeing the
&lt;br&gt;BuildException thrown by the ant task?
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Greetings,
&lt;br&gt;&lt;br&gt;&amp;nbsp; Thomas
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-apache-ant-inside-a-surefire-test-tp25989676p25989676.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25798060</id>
	<title>Re: Concurrent Junit (SUREFIRE-555)</title>
	<published>2009-10-07T21:04:24Z</published>
	<updated>2009-10-07T21:04:24Z</updated>
	<author>
		<name>dfabulich</name>
	</author>
	<content type="html">&lt;br&gt;I think this list is no longer in use. &amp;nbsp;Instead just use the main 
&lt;br&gt;maven-dev list.
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Concurrent-Junit-%28SUREFIRE-555%29-tp25793870p25798060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25793870</id>
	<title>Concurrent Junit (SUREFIRE-555)</title>
	<published>2009-10-07T13:30:37Z</published>
	<updated>2009-10-07T13:30:37Z</updated>
	<author>
		<name>Kristian Rosenvold-2</name>
	</author>
	<content type="html">I am the author of the patches in
&lt;br&gt;&lt;a href=&quot;http://jira.codehaus.org/browse/SUREFIRE-555&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/SUREFIRE-555&lt;/a&gt;. I was wondering if anyone
&lt;br&gt;would have the time to review this patch and hopefully accept it for
&lt;br&gt;inclusion in surefire. I am more than willing to make further adjustments if
&lt;br&gt;necessary.
&lt;br&gt;&lt;br&gt;The patch initially had some external dependencies that were a bit
&lt;br&gt;complicated, and these have been removed.
&lt;br&gt;&lt;br&gt;The only known issue with this patch at the moment is that the execution
&lt;br&gt;times for the tests are totally incorrect. This will require a bigger
&lt;br&gt;rewrite of the reporting module. (I can do this as a separate patch if
&lt;br&gt;needed, but this patch is large enough already)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Kristian Rosenvold
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Concurrent-Junit-%28SUREFIRE-555%29-tp25793870p25793870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25463686</id>
	<title>generating centralized findbugs report</title>
	<published>2009-09-15T00:51:13Z</published>
	<updated>2009-09-15T00:51:13Z</updated>
	<author>
		<name>Mircea Markus-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have a project that has the following structure:
&lt;br&gt;&lt;br&gt;- pom.xml
&lt;br&gt;- project_1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - pom.xml (extends ../pom.xml)
&lt;br&gt;- other
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - other1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - pom.xml (extends ../pom.xml)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- other
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - pom.xml (extends ../pom.xml)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pom.xml (extends ../pom.xml)
&lt;br&gt;- project_2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pom.xml (extens ../pom.xml)
&lt;br&gt;&lt;br&gt;&lt;br&gt;I would like that whenever I run &amp;quot;mvn site&amp;quot; to have a single, &amp;nbsp;
&lt;br&gt;centralized findbugs report in the &amp;lt;root&amp;gt;/site, rather than multiple &amp;nbsp;
&lt;br&gt;individual ones in subprojects.
&lt;br&gt;Is that possible?
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;Mircea
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/generating-centralized-findbugs-report-tp25463686p25463686.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24364859</id>
	<title>Yet another question about annotations in Junit Tests</title>
	<published>2009-07-06T12:12:24Z</published>
	<updated>2009-07-06T12:12:24Z</updated>
	<author>
		<name>Cooke, Peter M CTR DMDC</name>
	</author>
	<content type="html">Hello:
&lt;br&gt;&amp;nbsp; Sorry I am new to Maven and Surefire but I think my problem should be
&lt;br&gt;posted to this group. &amp;nbsp;
&lt;br&gt;&lt;br&gt;I like many others am having a problem running Junit 4.4 test cases when
&lt;br&gt;running maven. &amp;nbsp;I have not seen a definitive solution to the problem.
&lt;br&gt;&lt;br&gt;I can manually execute the following class and the test fails in the
&lt;br&gt;setUp() method as expected. &amp;nbsp;When I run this with maven, the @before
&lt;br&gt;method is never called. &amp;nbsp; &amp;nbsp;I have seen a couple of different postings in
&lt;br&gt;various places that indicate that indicate that is fixed with the code
&lt;br&gt;changes for running TestNG. &amp;nbsp;I have also seen some postings that
&lt;br&gt;indicate that this problem is not fixed and may never get fixed.
&lt;br&gt;&lt;br&gt;My question is should maven and surefire be able to run this class and
&lt;br&gt;fail in the setUp() method as coded? &amp;nbsp;
&lt;br&gt;Is there something I can change in my pom to make it run in surefire as
&lt;br&gt;a 4.4 Junit?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Currently using Maven 2.1.0, surefire 2.4.3 
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;maven-surefire-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;forkMode&amp;gt;always&amp;lt;/forkMode&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;redirectTestOutputToFile&amp;gt;true&amp;lt;/redirectTestOutputToFile&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- Add the following argument to skip the tests
&lt;br&gt;-Dmaven.test.skip=true --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;includes&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;include&amp;gt;**/*Tests.java&amp;lt;/include&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/includes&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/plugin&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;package support;
&lt;br&gt;&lt;br&gt;import junit.framework.Assert;
&lt;br&gt;&lt;br&gt;import org.junit.After;
&lt;br&gt;import org.junit.Before;
&lt;br&gt;import org.junit.Test;
&lt;br&gt;import org.junit.internal.runners.JUnit4ClassRunner;
&lt;br&gt;import org.junit.runner.RunWith;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;@RunWith(JUnit4ClassRunner.class)
&lt;br&gt;public class FooTests {
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;@Before
&lt;br&gt;&amp;nbsp; public void setUp() throws Exception {
&lt;br&gt;&amp;nbsp; Assert.fail(&amp;quot;foo&amp;quot;);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;@After
&lt;br&gt;&amp;nbsp; public void tearDown() throws Exception {
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; @Test
&lt;br&gt;&amp;nbsp; public void testFoo() {
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; public static void main(String[] args) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; org.junit.runner.JUnitCore.main(&amp;quot;support.FooTests&amp;quot;);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Yet-another-question-about-annotations-in-Junit-Tests-tp24364859p24364859.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23993109</id>
	<title>Debugging Hints</title>
	<published>2009-06-11T22:30:29Z</published>
	<updated>2009-06-11T22:30:29Z</updated>
	<author>
		<name>Steven Nunez</name>
	</author>
	<content type="html">Greetings all,
&lt;br&gt;&lt;br&gt;Does anyone have any debugging hints for surefire? I've got a perplexing problem, not helped by the fact that surefire doesn't appear to tell me the source of the problem.
&lt;br&gt;&lt;br&gt;I've got a working surefire/testng system working, and have gone to add tests for a second class. This class is nearly identical to the first, except that it processes a different data set. The trouble is that surefire won't even load the second set of tests. The first one still works fine, but as soon as the second class is added, 'BUILD FAILURE', with no indication of why. After running maven with '--debug', I still get nothing. The TestSuite.txt file is empty, and the console output doesn't indicate what the problem might be. 
&lt;br&gt;&lt;br&gt;The last line of the below shell excerpt says &amp;quot;... 16 more&amp;quot;; it sure would be useful to know how to obtain those last 16 errors. Does anyone know how?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&amp;nbsp; &amp;nbsp; - Steve Nunez
&lt;br&gt;&lt;br&gt;-------------------------------------------------------
&lt;br&gt;&amp;nbsp;T E S T S
&lt;br&gt;-------------------------------------------------------
&lt;br&gt;Running TestSuite
&lt;br&gt;[INFO] ------------------------------------------------------------------------
&lt;br&gt;[ERROR] BUILD FAILURE
&lt;br&gt;[INFO] ------------------------------------------------------------------------
&lt;br&gt;[INFO] There are test failures.
&lt;br&gt;&lt;br&gt;Please refer to /Users/nunez/Illation/Development/Scratch/test-app/trunk/drools-4.0.7/target/surefire-reports for the individual test results.
&lt;br&gt;[INFO] ------------------------------------------------------------------------
&lt;br&gt;[DEBUG] Trace
&lt;br&gt;org.apache.maven.BuildFailureException: There are test failures.
&lt;br&gt;&lt;br&gt;Please refer to /Users/nunez/Illation/Development/Scratch/test-app/trunk/drools-4.0.7/target/surefire-reports for the individual test results.
&lt;br&gt;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:699)
&lt;br&gt;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
&lt;br&gt;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
&lt;br&gt;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
&lt;br&gt;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
&lt;br&gt;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
&lt;br&gt;at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
&lt;br&gt;at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
&lt;br&gt;at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
&lt;br&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
&lt;br&gt;at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
&lt;br&gt;at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
&lt;br&gt;at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
&lt;br&gt;Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
&lt;br&gt;&lt;br&gt;Please refer to /Users/nunez/Illation/Development/Scratch/test-app/trunk/drools-4.0.7/target/surefire-reports for the individual test results.
&lt;br&gt;at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:575)
&lt;br&gt;at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
&lt;br&gt;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
&lt;br&gt;... 16 more
&lt;br&gt;[INFO] ------------------------------------------------------------------------
&lt;br&gt;[INFO] Total time: 7 seconds
&lt;br&gt;[INFO] Finished at: Fri Jun 12 15:23:11 EST 2009
&lt;br&gt;[INFO] Final Memory: 9M/23M
&lt;br&gt;[INFO] ------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Debugging-Hints-tp23993109p23993109.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23617063</id>
	<title>Why isn't Surefire more easier and more sensible to use?</title>
	<published>2009-05-18T18:22:04Z</published>
	<updated>2009-05-18T18:22:04Z</updated>
	<author>
		<name>Ben Hutchison-2</name>
	</author>
	<content type="html">Ive recently started using Surefire as part of a Maven project.
&lt;br&gt;&lt;br&gt;I was really surprised how inconvenient it was to use, and how things 
&lt;br&gt;about it seemed, well... stupid.
&lt;br&gt;&lt;br&gt;1. When running a suite of tests with &amp;quot;surefire:test 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html&lt;/a&gt;&amp;gt;&amp;quot;, 
&lt;br&gt;the main thing you want to see a summary of all failed tests. It is THE 
&lt;br&gt;most important and normal thing to look at. I was surprised to discover 
&lt;br&gt;Surefire doesnt produce this essential item by default. Instead, it 
&lt;br&gt;creates many individual reports, one per test, whether they passed or 
&lt;br&gt;failed.
&lt;br&gt;&lt;br&gt;2. Then, one has to run a second plugin and special goal just to get the 
&lt;br&gt;summary, which is what any normal person is going to be looking for. It 
&lt;br&gt;puts the summary in a different directory from the individual files. And 
&lt;br&gt;it doesnt produce this report as part of the normal build.
&lt;br&gt;&lt;br&gt;3. It generates the XML intermediate files that the report needs. It 
&lt;br&gt;also generates identical txt files, for no apparent reason. And 
&lt;br&gt;bizarrely, you can turn the XML off, but you cant turn the txt off.
&lt;br&gt;&lt;br&gt;And then you get weird situations where because the tests fail, the 
&lt;br&gt;build fails, and this actually stops the report generation which will 
&lt;br&gt;tell you what test failed :(
&lt;br&gt;&lt;a href=&quot;http://jira.codehaus.org/browse/SUREFIRE-507?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/SUREFIRE-507?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.eclipse.org/newsportal/article.php?id=216&amp;group=eclipse.technology.iam#216&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eclipse.org/newsportal/article.php?id=216&amp;group=eclipse.technology.iam#216&lt;/a&gt;&lt;br&gt;&lt;br&gt;The whole thing seems like a classic case of programmer-centric, not 
&lt;br&gt;user-centric, thinking. This tool doesn't seem to have started with what 
&lt;br&gt;a typical user would want and then worked backwards to meet this goal.
&lt;br&gt;&lt;br&gt;I dont particularly enjoy criticizing some programmer's unpaid 
&lt;br&gt;contribution, but Surefire is a widely used piece of infrastructure, and 
&lt;br&gt;it should work better than it does.
&lt;br&gt;&lt;br&gt;-Ben
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;*Ben Hutchison
&lt;br&gt;Senior Developer
&lt;br&gt;* Level 2 476 St Kilda Road Melbourne VIC 3004
&lt;br&gt;T 613 8807 5252 | F 613 8807 5203 | M 0423 879 534 | 
&lt;br&gt;www.ibsglobalweb.com &amp;lt;&lt;a href=&quot;http://www.ibsglobalweb.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ibsglobalweb.com/&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-isn%27t-Surefire-more-easier-and-more-sensible-to-use--tp23617063p23617063.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23443870</id>
	<title>Unknown source for assertion in surefire driven JUnit test with  Tellurium</title>
	<published>2009-05-08T03:54:56Z</published>
	<updated>2009-05-08T03:54:56Z</updated>
	<author>
		<name>Ernst Persson</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've started looking at the Tellurium web testing framework. I'm using
&lt;br&gt;their template with Maven, Surefire and JUnit to drive the tests. It's
&lt;br&gt;very easy to test it, just follow this guide.
&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/aost/wiki/TenMinutesToTellurium&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/aost/wiki/TenMinutesToTellurium&lt;/a&gt;&lt;br&gt;&lt;br&gt;What happens is that when I have an assertion failure the JVM (?)
&lt;br&gt;doesn't provide the source file and line number! See stacktrace (1)
&lt;br&gt;This leads to a number of issues, i.e. you can't build reports. See
&lt;br&gt;stacktrace (2)
&lt;br&gt;&lt;br&gt;I can't see that anything Tellurium-specific goes on here and neither
&lt;br&gt;can the Tellurium maintainer.
&lt;br&gt;Does anyone have a clue what might be causing this?
&lt;br&gt;&lt;br&gt;Using surefire 2.4.3.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;/Ernst Persson
&lt;br&gt;&lt;br&gt;(1)
&lt;br&gt;more target/surefire-reports/test.SomethingTestCase.txt
&lt;br&gt;-------------------------------------------------------------------------------
&lt;br&gt;Test set: test.SomethingTestCase
&lt;br&gt;-------------------------------------------------------------------------------
&lt;br&gt;Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 18.251
&lt;br&gt;sec &amp;lt;&amp;lt;&amp;lt; FAILURE!
&lt;br&gt;testDuplicateName(test.SomethingTestCase) &amp;nbsp;Time elapsed: 2.231 sec &amp;nbsp;&amp;lt;&amp;lt;&amp;lt; FAILURE!
&lt;br&gt;java.lang.AssertionError: expected not same
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.Assert.fail(Assert.java:74)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.Assert.failSame(Assert.java:437)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.Assert.assertNotSame(Assert.java:420)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.Assert.assertNotSame(Assert.java:430)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at test.SomethingTestCase.testDuplicateName(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
&lt;br&gt;&lt;br&gt;(2)
&lt;br&gt;[ERROR] FATAL ERROR
&lt;br&gt;[INFO] ------------------------------------------------------------------------
&lt;br&gt;[INFO] String index out of range: -1
&lt;br&gt;[INFO] ------------------------------------------------------------------------
&lt;br&gt;[INFO] Trace
&lt;br&gt;java.lang.StringIndexOutOfBoundsException: String index out of range: -1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.String.substring(String.java:1938)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.plugins.surefire.report.SurefireReportGenerator.getErrorLineNumber(SurefireReportGenerator.java:638)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.plugins.surefire.report.SurefireReportGenerator.constructFailureDetails(SurefireReportGenerator.java:600)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.plugins.surefire.report.SurefireReportGenerator.doGenerateReport(SurefireReportGenerator.java:111)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.plugins.surefire.report.SurefireReportMojo.executeReport(SurefireReportMojo.java:180)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
&lt;br&gt;&lt;br&gt;PS I hope I'm not upsetting anyone by crossposting this, I really have
&lt;br&gt;no idea where the problem is.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unknown-source-for-assertion-in-surefire-driven-JUnit-test-with--Tellurium-tp23443870p23443870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22660743</id>
	<title>forking single tests from junit test suite</title>
	<published>2009-03-23T07:01:59Z</published>
	<updated>2009-03-23T07:01:59Z</updated>
	<author>
		<name>Christoph Höger</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I need to test a feature for my project on large test input files.
&lt;br&gt;To get that, I create TestCases from a single TestSuite dynamically. The
&lt;br&gt;relevant part of the pom looks like:
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 			&amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;gt; 				&amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt; 				&amp;lt;artifactId&amp;gt;maven-surefire-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt; 				&amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;reportFormat&amp;gt;plain&amp;lt;/reportFormat&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;trimStackTrace&amp;gt;false&amp;lt;/trimStackTrace&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;forkMode&amp;gt;perTest&amp;lt;/forkMode&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;argLine&amp;gt;-XX:+HeapDumpOnOutOfMemoryError&amp;lt;/argLine&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;excludes&amp;gt;
&lt;br&gt;&amp;gt; 						&amp;lt;exclude&amp;gt;**/IncrementalParsePhase1Test.java&amp;lt;/exclude&amp;gt;
&lt;br&gt;&amp;gt; 						&amp;lt;exclude&amp;gt;**/incremental/testparser/*.java&amp;lt;/exclude&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;/excludes&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;includes&amp;gt;
&lt;br&gt;&amp;gt; 						&amp;lt;include&amp;gt;**/IncrementalParsingTestSuite.java&amp;lt;/include&amp;gt;
&lt;br&gt;&amp;gt; 					&amp;lt;/includes&amp;gt;
&lt;br&gt;&amp;gt; 				&amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;gt; 			&amp;lt;/plugin&amp;gt;
&lt;/div&gt;&lt;/div&gt;In my TestSuite there runs a loop:
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; for (int i = 0; i &amp;lt; Lexer.getCachedInput().size(); i++) {
&lt;br&gt;&amp;gt; 				//brake for large test cases
&lt;br&gt;&amp;gt; 				if (i % (1 + (Lexer.getCachedInput().size() / 20)) != 0)
&lt;br&gt;&amp;gt; 					continue;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 				Range diffRange = new Range(i, i);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 				IncrementalParsePhase1Test test = new IncrementalParsePhase1Test(
&lt;br&gt;&amp;gt; 						Lexer.getInputFileName(), Lexer.getCachedInput(),
&lt;br&gt;&amp;gt; 						generatedStates, diffRange, rootAbsy, Lexer.getCachedInput().get(i).getSavedConfiguration());
&lt;br&gt;&amp;gt; 				suite.addTest(test);
&lt;br&gt;&amp;gt; 			}
&lt;/div&gt;&lt;/div&gt;The problem is, that maven does not seem to run every testCase in a new
&lt;br&gt;vm, but reuses the old one (and somehow prevents the GC from cleaning
&lt;br&gt;up old testcases), so earlier or later I run into a heap overflow.
&lt;br&gt;&lt;br&gt;This is especially bad, as I want to measure the performance of some operations and the GC seems to interrupt my threads thus creating huge performance problems.
&lt;br&gt;&lt;br&gt;So is it possible to make surefire run each test in a single vm?
&lt;br&gt;&lt;br&gt;regards
&lt;br&gt;&lt;br&gt;Christoph
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/22660743/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/forking-single-tests-from-junit-test-suite-tp22660743p22660743.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22039344</id>
	<title>Junit target code dependencies are unresolved</title>
	<published>2009-02-16T07:27:09Z</published>
	<updated>2009-02-16T07:27:09Z</updated>
	<author>
		<name>Frederic Tuttle</name>
	</author>
	<content type="html">I've written a junit test case against a class that has dependencies (log4j
&lt;br&gt;for instance). I've declared those dependencies in my pom.xml. I've declared
&lt;br&gt;junit 3.8.1 as a test scoped dependency.
&lt;br&gt;&lt;br&gt;When I run mvn test I get errors on each test indicating that junit is not
&lt;br&gt;resolving the references to the dependencies in the target code. &amp;nbsp;From the
&lt;br&gt;surefire-reports--
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;error type=&amp;quot;java.lang.Error&amp;quot; message=&amp;quot;Unresolved compilation problems:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The import org.apache cannot be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The import javax.xml.bind cannot be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The import javax.xml.bind cannot be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The import javax.xml.bind cannot be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JAXBContext cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JAXBContext cannot be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Marshaller cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Marshaller cannot be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JAXBContext cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JAXBContext cannot be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unmarshaller cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger cannot be resolved to a type
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;This is a very simple case and there is nothing special about it. &amp;nbsp;I tried
&lt;br&gt;changing the dependency scopes and explicitly adding jars to the surefire
&lt;br&gt;config and nothing worked.
&lt;br&gt;&lt;br&gt;Anyone else have this problem ?
&lt;br&gt;I'd be gratefull for some pointers.
&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&amp;nbsp;-FT
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Junit-target-code-dependencies-are-unresolved-tp22039344p22039344.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-21300757</id>
	<title>Expected Behavior When Using report-only</title>
	<published>2009-01-05T08:18:37Z</published>
	<updated>2009-01-05T08:18:37Z</updated>
	<author>
		<name>leojhartiv</name>
	</author>
	<content type="html">Hello!
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I've read the JIRA found here:
&lt;br&gt;&lt;a href=&quot;http://jira.codehaus.org/browse/SUREFIRE-257&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/SUREFIRE-257&lt;/a&gt;&lt;br&gt;and tried to incorporate its advice into my POM.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Currently, when I run &amp;quot;mvn clean install site&amp;quot;, I get the following:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C:\workspace\shares-trunk\shares-domain&amp;gt;mvn clean install site
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C:\workspace\shares-trunk\shares-domain&amp;gt;set MAVEN_OPTS=-Xmx256m
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Scanning for projects...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO]
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Building shares-domain
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] &amp;nbsp; &amp;nbsp;task-segment: [clean, install, site]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO]
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [clean:clean]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Deleting directory
&lt;br&gt;C:\workspace\shares-trunk\shares-domain\target
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [resources:resources]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Using default encoding to copy filtered resources.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [compiler:compile]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Compiling 101 source files to
&lt;br&gt;C:\workspace\shares-trunk\shares-domain\target\classes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [resources:testResources]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Using default encoding to copy filtered resources.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [compiler:testCompile]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Compiling 35 source files to
&lt;br&gt;C:\workspace\shares-trunk\shares-domain\target\test-classes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [surefire:test]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Surefire report directory:
&lt;br&gt;C:\workspace\shares-trunk\shares-domain\target\surefire-reports
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;T E S T S
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...&amp;lt;tests are run here - clears for confidentiality&amp;gt;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Results :
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tests run: 54, Failures: 0, Errors: 0, Skipped: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [jar:jar]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Building jar:
&lt;br&gt;C:\workspace\shares-trunk\shares-domain\target\shares-domain-1.0-SNAPSHO
&lt;br&gt;T.jar
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [install:install]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Installing
&lt;br&gt;C:\workspace\shares-trunk\shares-domain\target\shares-domain-1.0-SNAPSHO
&lt;br&gt;T.jar to \.m2\repository\com\fideli
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;ty\shares\shares-domain\1.0-SNAPSHOT\shares-domain-1.0-SNAPSHOT.jar
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Setting property: classpath.resource.loader.class =&amp;gt;
&lt;br&gt;'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Setting property: velocimacro.messages.on =&amp;gt; 'false'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Setting property: resource.loader =&amp;gt; 'classpath'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Setting property: resource.manager.logwhenfound =&amp;gt;
&lt;br&gt;'false'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO]
&lt;br&gt;**************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Starting Jakarta Velocity v1.4
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] RuntimeInstance initializing.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Default Properties File:
&lt;br&gt;org\apache\velocity\runtime\defaults\velocity.properties
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Default ResourceManager initializing. (class
&lt;br&gt;org.apache.velocity.runtime.resource.ResourceManagerImpl)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Resource Loader Instantiated:
&lt;br&gt;org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] ClasspathResourceLoader : initialization starting.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] ClasspathResourceLoader : initialization complete.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] ResourceCache : initialized. (class
&lt;br&gt;org.apache.velocity.runtime.resource.ResourceCacheImpl)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Default ResourceManager initialization complete.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Loaded System Directive:
&lt;br&gt;org.apache.velocity.runtime.directive.Literal
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Loaded System Directive:
&lt;br&gt;org.apache.velocity.runtime.directive.Macro
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Loaded System Directive:
&lt;br&gt;org.apache.velocity.runtime.directive.Parse
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Loaded System Directive:
&lt;br&gt;org.apache.velocity.runtime.directive.Include
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Loaded System Directive:
&lt;br&gt;org.apache.velocity.runtime.directive.Foreach
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Created: 20 parsers.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocimacro : initialization starting.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocimacro : adding VMs from VM library template :
&lt;br&gt;VM_global_library.vm
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ERROR] ResourceManager : unable to find resource
&lt;br&gt;'VM_global_library.vm' in any resource loader.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocimacro : error using &amp;nbsp;VM library template
&lt;br&gt;VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundEx
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ception: Unable to find resource 'VM_global_library.vm'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocimacro : &amp;nbsp;VM library template macro registration
&lt;br&gt;complete.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocimacro : allowInline = true : VMs can be defined
&lt;br&gt;inline in templates
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocimacro : allowInlineToOverride = false : VMs defined
&lt;br&gt;inline may NOT replace previous VM definitions
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocimacro : allowInlineLocal = false : VMs defined
&lt;br&gt;inline will be &amp;nbsp;global in scope if allowed.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocimacro : initialization complete.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Velocity successfully started.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Preparing surefire-report:report
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [resources:resources]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Using default encoding to copy filtered resources.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [compiler:compile]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Nothing to compile - all classes are up to date
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [resources:testResources]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Using default encoding to copy filtered resources.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [compiler:testCompile]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Nothing to compile - all classes are up to date
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [surefire:test]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Surefire report directory:
&lt;br&gt;C:\workspace\shares-trunk\shares-domain\target\surefire-reports
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;T E S T S
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...&amp;lt;tests are run here - clears for confidentiality&amp;gt;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Results :
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tests run: 54, Failures: 0, Errors: 0, Skipped: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Preparing surefire-report:report-only
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] No goals needed for project - skipping
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] [site:site]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [WARNING] No URL defined for the project - decoration links will
&lt;br&gt;not be resolved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Skipped &amp;quot;Surefire Report&amp;quot; report, file
&lt;br&gt;&amp;quot;surefire-report.html&amp;quot; already exists for the English version.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Source Xref&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [WARNING] Unable to locate Javadoc to link to - DISABLED
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Test Source Xref&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Plugin Management&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Mailing Lists&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Continuous Integration&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Dependency Management&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Downloading:
&lt;br&gt;&lt;a href=&quot;http://cfesstbos1:18080/nexus/content/groups/public/joda-time/joda-time-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cfesstbos1:18080/nexus/content/groups/public/joda-time/joda-time-&lt;/a&gt;&lt;br&gt;jsptags/1.0.2/joda-time-jsptags-1.0.2.po
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://cfesstbos1:18080/nexus/content/groups/public/joda-time/joda-time&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cfesstbos1:18080/nexus/content/groups/public/joda-time/joda-time&lt;/a&gt;&lt;br&gt;-jsptags/1.0.2/joda-time-jsptags-1.0.2.po&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Project License&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Project Team&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Source Repository&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;About&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Issue Tracking&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Project Summary&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Project Plugins&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Dependencies&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Generating &amp;quot;Surefire Report&amp;quot; report.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO]
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] BUILD SUCCESSFUL
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO]
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Total time: 30 seconds
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Finished at: Mon Jan 05 11:01:09 EST 2009
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO] Final Memory: 35M/74M
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [INFO]
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C:\workspace\shares-trunk\shares-domain&amp;gt;
&lt;br&gt;&lt;br&gt;As you can see, my tests are executed twice, once as part of the
&lt;br&gt;&amp;quot;install&amp;quot; goal and a second time under the &amp;quot;site&amp;quot; goal. &amp;nbsp;My POM has the
&lt;br&gt;following declaration:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;maven-surefire-report-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;2.4.3&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;formMode&amp;gt;once&amp;lt;/formMode&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xrefLocation&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ${project.reporting.outputDirectory}/../xref-test
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/xrefLocation&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;reportSets&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;reportSet&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;reports&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;report&amp;gt;report-only&amp;lt;/report&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/reports&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/reportSet&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/reportSets&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;systemProperties&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;env.props.path&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;value&amp;gt;c:/environment.properties&amp;lt;/value&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/systemProperties&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;argLine&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -Denv.props.path=c:/environment.properties
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/argLine&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/configuration&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugin&amp;gt;
&lt;br&gt;&lt;br&gt;No other surefire configuration is specified. &amp;nbsp;Given the conversation
&lt;br&gt;occuring in SUREFIRE-257, I would assume that my tests would only be
&lt;br&gt;executed once. &amp;nbsp;Should this be the case or is it expected that the tests
&lt;br&gt;are run for each goal?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Thanks!
&lt;br&gt;Leo
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expected-Behavior-When-Using-report-only-tp21300757p21300757.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20428666</id>
	<title>How to specify a specialized Juni TestRunner in surefire?</title>
	<published>2008-11-10T13:37:48Z</published>
	<updated>2008-11-10T13:37:48Z</updated>
	<author>
		<name>Pinaki Poddar-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&amp;nbsp; &amp;nbsp;Is there a way in surefire to specify a specialized JUnit TestRunner 
&lt;br&gt;class?
&lt;br&gt;&amp;nbsp; &amp;nbsp;If yes, how?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Regards --
&lt;br&gt;&lt;br&gt;Pinaki Poddar
&lt;br&gt;Application &amp; Integration Middleware
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-specify-a-specialized-Juni-TestRunner-in-surefire--tp20428666p20428666.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20263493</id>
	<title>Running both Junit4 and TestNG test cases in single Maven project</title>
	<published>2008-10-31T03:43:19Z</published>
	<updated>2008-10-31T03:43:19Z</updated>
	<author>
		<name>Nalaka Gamage-3</name>
	</author>
	<content type="html">In my project I need to have both both Junit4 and TestNG test cases and
&lt;br&gt;build using Maven2.
&lt;br&gt;&lt;br&gt;However I found that when I run 'mvn test' goll, Junit4 test cases are
&lt;br&gt;ignored by Maven surfire plugin and only TestNG test cases are run. However
&lt;br&gt;when I use JUnit3 and TestNG test cases together, both the test cases are
&lt;br&gt;picked correctly. Can anyone propose a solution?
&lt;br&gt;&lt;br&gt;I have append my POM file for your reference.
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;- Nalaka
&lt;br&gt;&amp;lt;project&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;dependencies&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;junit&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;junit&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;4.3.1&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.testng&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;testng&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;5.8&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classifier&amp;gt;jdk15&amp;lt;/classifier&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/dependencies&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;build&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;plugins&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;maven-compiler-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;2.0.2&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;source&amp;gt;1.5&amp;lt;/source&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;target&amp;gt;1.5&amp;lt;/target&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/plugin&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/plugins&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/build&amp;gt;
&lt;br&gt;&amp;lt;/project&amp;gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Users-f21512.html&quot; embed=&quot;fixTarget[21512]&quot; target=&quot;_top&quot; &gt;Surefire - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Running-both-Junit4-and-TestNG-test-cases-in-single-Maven-project-tp20263493p20263493.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18492320</id>
	<title>Surefilre configuration in profile won't override testSourceDirectory</title>
	<published>2008-07-16T10:15:21Z</published>
	<updated>2008-07-16T10:15:21Z</updated>
	<author>
		<name>vicki</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I have a test integration profile in the project's main pom, where I am trying to override the testSourceDirectory specified in the project tag. The surefire ignores the new value of the testSourceDirectory. Please, help.
&lt;br&gt;Vicki&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Surefilre-configuration-in-profile-won%27t-override-testSourceDirectory-tp18492320p18492320.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18412308</id>
	<title>Surefire reports on Junit Parameterized tests</title>
	<published>2008-07-11T13:50:31Z</published>
	<updated>2008-07-11T13:50:31Z</updated>
	<author>
		<name>vicki</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I am using surefire to run Junit's 4.x parametrerized tests. Surefire reports them as 1 test. If one test out of the parameterized bundle fails - Surefire fails the entire encapsulating test. Is there a way to set the Surefire in such a way that it reports all the parameterized tests?
&lt;br&gt;Thanks,
&lt;br&gt;Vicki&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Surefire-reports-on-Junit-Parameterized-tests-tp18412308p18412308.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15419116</id>
	<title>Re: TestNG @BeforeMethod not working on subclasses.</title>
	<published>2008-02-11T11:39:31Z</published>
	<updated>2008-02-11T11:39:31Z</updated>
	<author>
		<name>dfabulich</name>
	</author>
	<content type="html">roadtripryan wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I am trying to test using TestNG/Spring/ and Maven Surefire 2.4.1.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My test suite runs great from within eclipse as individual tests or as a
&lt;br&gt;&amp;gt; whole suite. When I try and run the tests in Maven Surefire, however, they
&lt;br&gt;&amp;gt; fail. It appears Surefire is not calling the correct @BeforeMethod method.
&lt;br&gt;&amp;gt; (When running the whole suite, or an individual test.)
&lt;br&gt;&lt;br&gt;As you might expect, all Surefire does is call TestNG directly; we don't 
&lt;br&gt;directly call @BeforeMethod, @Test, etc.
&lt;br&gt;&lt;br&gt;&amp;gt; From testing it, it seems Surefire calls the @BeforeMethod in the base
&lt;br&gt;&amp;gt; class, but not in extending classes if they override it. I am extending
&lt;br&gt;&amp;gt; Springs AbstractTestNGSpringContextTests, and it is calling the base class
&lt;br&gt;&amp;gt; methods, not my extending classes @BeforeMethod and @AfterMethod.
&lt;br&gt;&amp;gt; Interestingly, it seems to call the correct @BeforeClass method.
&lt;br&gt;&lt;br&gt;If you're having a problem with a TestNG test that you believe should be 
&lt;br&gt;working, please file a bug on jira.codehaus.org; please also attach a 
&lt;br&gt;minimal Maven project that reproduces the problem. &amp;nbsp;Ideally a test like 
&lt;br&gt;this should be nothing more than a pom.xml file and a couple of TestNG 
&lt;br&gt;classes in appropriate directories. &amp;nbsp;(Please don't include any spring 
&lt;br&gt;classes in this test case unless it's absolutely necessary to do so.)
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/TestNG-%40BeforeMethod-not-working-on-subclasses.-tp15418799p15419116.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15418799</id>
	<title>TestNG @BeforeMethod not working on subclasses.</title>
	<published>2008-02-11T11:30:16Z</published>
	<updated>2008-02-11T11:30:16Z</updated>
	<author>
		<name>roadtripryan</name>
	</author>
	<content type="html">I am trying to test using TestNG/Spring/ and Maven Surefire 2.4.1. 
&lt;br&gt;&lt;br&gt;My test suite runs great from within eclipse as individual tests or as a whole suite. When I try and run the tests in Maven Surefire, however, they fail. It appears Surefire is not calling the correct @BeforeMethod method. (When running the whole suite, or an individual test.)
&lt;br&gt;&lt;br&gt;From testing it, it seems Surefire calls the @BeforeMethod in the base class, but not in extending classes if they override it. I am extending Springs AbstractTestNGSpringContextTests, and it is calling the base class methods, not my extending classes @BeforeMethod and @AfterMethod. Interestingly, it seems to call the correct @BeforeClass method. 
&lt;br&gt;&lt;br&gt;Any ideas?
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/TestNG-%40BeforeMethod-not-working-on-subclasses.-tp15418799p15418799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15324832</id>
	<title>Re: testng, surefire, and forkMode=always</title>
	<published>2008-02-06T16:15:23Z</published>
	<updated>2008-02-06T16:15:23Z</updated>
	<author>
		<name>Benjamin Bentmann</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;brettporter wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;I don't know why people even use it with JUnit
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
I am not really after forking all my tests, they already take long enough... As Dan already guessed, I was more after a way to hack me through to single-class test-suites. If forkMode=always would have worked, I would have argued, &amp;quot;well, I want this behavior but without the JVM forking, please&amp;quot; ;-)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Benjamin Bentmann
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/testng%2C-surefire%2C-and-forkMode%3Dalways-tp15323782p15324832.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15324776</id>
	<title>Re: testng, surefire, and forkMode=always</title>
	<published>2008-02-06T16:10:32Z</published>
	<updated>2008-02-06T16:10:32Z</updated>
	<author>
		<name>Benjamin Bentmann</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;What should I do here? &amp;nbsp;Put in the hack and let the user figure out the 
&lt;br&gt;TestNGException if they try to use multi-class dependent methods?&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Please, give us the exception from TestNG if the setup is invalid, give us the mere test results if the setup is valid because no inter-class dependencies exist. I mean somebody who can setup a config file for a build tool is smart enough to figure out what an exception means or do you disagree? Just in case, a few lines of doc about the forkMode=always setting should successfully shield Surefire from users filling in unjustified issues.
&lt;br&gt;&lt;br&gt;To me, it seems this discussion is primarily concerned about making Surefire bullet-proof against bad user config. As for me, I have this slightly arrogant attitude to feel superior to a machine and hence always feel kind of angry if a program wants to tell what I should better not do because it might fail.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Benjamin Bentmann&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/testng%2C-surefire%2C-and-forkMode%3Dalways-tp15323782p15324776.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15324537</id>
	<title>Re: [testng-users] testng, surefire, and forkMode=always</title>
	<published>2008-02-06T15:52:41Z</published>
	<updated>2008-02-06T15:52:41Z</updated>
	<author>
		<name>Benjamin Bentmann</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Cédric Beust ♔ wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Creating a TestNG instance for every @Test method? &amp;nbsp;Seems completely useless
&lt;br&gt;to me.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
The intent is not to fork once per test method but once per test class. Just like I can say in the TestNG Eclipse plugin &amp;quot;run class XY&amp;quot; instead of selecting a group.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Benjamin Bentmann&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/testng%2C-surefire%2C-and-forkMode%3Dalways-tp15323782p15324537.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15323908</id>
	<title>Re: testng, surefire, and forkMode=always</title>
	<published>2008-02-06T15:08:17Z</published>
	<updated>2008-02-06T15:08:17Z</updated>
	<author>
		<name>brettporter</name>
	</author>
	<content type="html">My inclination would be towards just an error that says its not &amp;nbsp;
&lt;br&gt;supported under TestNG.
&lt;br&gt;&lt;br&gt;I don't know why people even use it with JUnit, except when they have &amp;nbsp;
&lt;br&gt;memory leaks in their tests, or tests that affect the state of the JVM &amp;nbsp;
&lt;br&gt;that they don't tear down :)
&lt;br&gt;&lt;br&gt;- Brett
&lt;br&gt;&lt;br&gt;On 07/02/2008, at 9:59 AM, Dan Fabulich wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Benjamin Bentmann has filed bug SUREFIRE-446 &lt;a href=&quot;http://jira.codehaus.org/browse/SUREFIRE-446&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/SUREFIRE-446&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maven Surefire provides a facility for various &amp;quot;fork modes&amp;quot;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * forkMode=once: The default mode, spawns a separate TestNG process &amp;nbsp;
&lt;br&gt;&amp;gt; (like the TestNG Ant task)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * forkMode=never: run TestNG in the same process as Maven, in an &amp;nbsp;
&lt;br&gt;&amp;gt; isolated classloader
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * forkMode=always: launch TestNG N times for N tests; if one test &amp;nbsp;
&lt;br&gt;&amp;gt; segfaults or calls System.exit or something, the other tests can run &amp;nbsp;
&lt;br&gt;&amp;gt; to completion safely.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I didn't test forkMode=always with TestNG in Surefire 2.4, and sure &amp;nbsp;
&lt;br&gt;&amp;gt; enough it doesn't work at all. &amp;nbsp;(It runs the tests but reports 0 &amp;nbsp;
&lt;br&gt;&amp;gt; tests passed/failed.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It does work basically OK for JUnit, where classes are normally &amp;nbsp;
&lt;br&gt;&amp;gt; isolated from each other, but I'm not sure it even makes sense for &amp;nbsp;
&lt;br&gt;&amp;gt; TestNG tests, where one test may depend on tests in other classes &amp;nbsp;
&lt;br&gt;&amp;gt; (multi-class dependent methods).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can kind of hack it so it works OK if you don't have multi-class &amp;nbsp;
&lt;br&gt;&amp;gt; dependent methods, but if you DO have multi-class dependent methods, &amp;nbsp;
&lt;br&gt;&amp;gt; it fails with a TestNGException: &amp;quot;MyTest.testFoo() is depending on &amp;nbsp;
&lt;br&gt;&amp;gt; nonexistent method otherClassSetUp&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What should I do here? &amp;nbsp;Put in the hack and let the user figure out &amp;nbsp;
&lt;br&gt;&amp;gt; the TestNGException if they try to use multi-class dependent &amp;nbsp;
&lt;br&gt;&amp;gt; methods? &amp;nbsp;Fail with a clean error if the user tries to use &amp;nbsp;
&lt;br&gt;&amp;gt; forkMode=always with TestNG? Something else?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Should forkMode=always be a feature of TestNG somehow?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Dan
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/testng%2C-surefire%2C-and-forkMode%3Dalways-tp15323782p15323908.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15323895</id>
	<title>Re: [testng-users] testng, surefire, and forkMode=always</title>
	<published>2008-02-06T15:04:40Z</published>
	<updated>2008-02-06T15:04:40Z</updated>
	<author>
		<name>Cédric Beust ♔</name>
	</author>
	<content type="html">Creating a TestNG instance for every @Test method? &amp;nbsp;Seems completely useless
&lt;br&gt;to me.
&lt;br&gt;&lt;br&gt;Especially when you can control the threading behavior with the parallel
&lt;br&gt;attribute.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Cédric
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Feb 6, 2008 at 2:59 PM, Dan Fabulich &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=15323895&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dan@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Benjamin Bentmann has filed bug SUREFIRE-446
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://jira.codehaus.org/browse/SUREFIRE-446&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/SUREFIRE-446&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maven Surefire provides a facility for various &amp;quot;fork modes&amp;quot;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * forkMode=once: The default mode, spawns a separate TestNG process (like
&lt;br&gt;&amp;gt; the TestNG Ant task)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * forkMode=never: run TestNG in the same process as Maven, in an isolated
&lt;br&gt;&amp;gt; classloader
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * forkMode=always: launch TestNG N times for N tests; if one test
&lt;br&gt;&amp;gt; segfaults or calls System.exit or something, the other tests can run to
&lt;br&gt;&amp;gt; completion safely.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I didn't test forkMode=always with TestNG in Surefire 2.4, and sure enough
&lt;br&gt;&amp;gt; it doesn't work at all. &amp;nbsp;(It runs the tests but reports 0 tests
&lt;br&gt;&amp;gt; passed/failed.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It does work basically OK for JUnit, where classes are normally isolated
&lt;br&gt;&amp;gt; from each other, but I'm not sure it even makes sense for TestNG tests,
&lt;br&gt;&amp;gt; where one test may depend on tests in other classes (multi-class dependent
&lt;br&gt;&amp;gt; methods).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can kind of hack it so it works OK if you don't have multi-class
&lt;br&gt;&amp;gt; dependent methods, but if you DO have multi-class dependent methods, it
&lt;br&gt;&amp;gt; fails with a TestNGException: &amp;quot;MyTest.testFoo() is depending on
&lt;br&gt;&amp;gt; nonexistent method otherClassSetUp&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What should I do here? &amp;nbsp;Put in the hack and let the user figure out the
&lt;br&gt;&amp;gt; TestNGException if they try to use multi-class dependent methods? &amp;nbsp;Fail
&lt;br&gt;&amp;gt; with a clean error if the user tries to use forkMode=always with TestNG?
&lt;br&gt;&amp;gt; Something else?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Should forkMode=always be a feature of TestNG somehow?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Dan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups
&lt;br&gt;&amp;gt; &amp;quot;testng-users&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=15323895&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;testng-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=15323895&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;testng-users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For more options, visit this group at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://groups.google.com/group/testng-users?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/testng-users?hl=en&lt;/a&gt;&lt;br&gt;&amp;gt; -~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/testng%2C-surefire%2C-and-forkMode%3Dalways-tp15323782p15323895.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15323782</id>
	<title>testng, surefire, and forkMode=always</title>
	<published>2008-02-06T14:59:03Z</published>
	<updated>2008-02-06T14:59:03Z</updated>
	<author>
		<name>dfabulich</name>
	</author>
	<content type="html">&lt;br&gt;Benjamin Bentmann has filed bug SUREFIRE-446 
&lt;br&gt;&lt;a href=&quot;http://jira.codehaus.org/browse/SUREFIRE-446&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/SUREFIRE-446&lt;/a&gt;&lt;br&gt;&lt;br&gt;Maven Surefire provides a facility for various &amp;quot;fork modes&amp;quot;:
&lt;br&gt;&lt;br&gt;* forkMode=once: The default mode, spawns a separate TestNG process (like 
&lt;br&gt;the TestNG Ant task)
&lt;br&gt;&lt;br&gt;* forkMode=never: run TestNG in the same process as Maven, in an isolated 
&lt;br&gt;classloader
&lt;br&gt;&lt;br&gt;* forkMode=always: launch TestNG N times for N tests; if one test 
&lt;br&gt;segfaults or calls System.exit or something, the other tests can run to 
&lt;br&gt;completion safely.
&lt;br&gt;&lt;br&gt;I didn't test forkMode=always with TestNG in Surefire 2.4, and sure enough 
&lt;br&gt;it doesn't work at all. &amp;nbsp;(It runs the tests but reports 0 tests 
&lt;br&gt;passed/failed.)
&lt;br&gt;&lt;br&gt;It does work basically OK for JUnit, where classes are normally isolated 
&lt;br&gt;from each other, but I'm not sure it even makes sense for TestNG tests, 
&lt;br&gt;where one test may depend on tests in other classes (multi-class dependent 
&lt;br&gt;methods).
&lt;br&gt;&lt;br&gt;I can kind of hack it so it works OK if you don't have multi-class 
&lt;br&gt;dependent methods, but if you DO have multi-class dependent methods, it 
&lt;br&gt;fails with a TestNGException: &amp;quot;MyTest.testFoo() is depending on 
&lt;br&gt;nonexistent method otherClassSetUp&amp;quot;.
&lt;br&gt;&lt;br&gt;What should I do here? &amp;nbsp;Put in the hack and let the user figure out the 
&lt;br&gt;TestNGException if they try to use multi-class dependent methods? &amp;nbsp;Fail 
&lt;br&gt;with a clean error if the user tries to use forkMode=always with TestNG? 
&lt;br&gt;Something else?
&lt;br&gt;&lt;br&gt;Should forkMode=always be a feature of TestNG somehow?
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/testng%2C-surefire%2C-and-forkMode%3Dalways-tp15323782p15323782.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15142735</id>
	<title>Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-28T11:00:17Z</published>
	<updated>2008-01-28T11:00:17Z</updated>
	<author>
		<name>dfabulich</name>
	</author>
	<content type="html">Benjamin Bentmann wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; TestNG is not designed only for the fancy tests, it can run the simple unit
&lt;br&gt;&amp;gt; tests, too. Dan, to me it looks you/Surefire are pushing something like &amp;quot;If
&lt;br&gt;&amp;gt; you want unit tests, use JUnit, if you want function/integration tests, use
&lt;br&gt;&amp;gt; TestNG&amp;quot; by punishing those that employ TestNG for the simple use-case. I am
&lt;br&gt;&amp;gt; neither a JUnit nor TestNG fanatic but I can't follow your XOR-like argument
&lt;br&gt;&amp;gt; here.
&lt;br&gt;&lt;br&gt;You CAN use TestNG for unit tests; the simple use case does work. &amp;nbsp;It's 
&lt;br&gt;just not as nice as you might wish it were. &amp;nbsp;My argument is that this 
&lt;br&gt;isn't very important because there's a better alternative available for 
&lt;br&gt;unit tests.
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15142735.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15138325</id>
	<title>Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-28T07:54:58Z</published>
	<updated>2008-01-28T07:54:58Z</updated>
	<author>
		<name>Benjamin Bentmann</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;As I said, I don't think you're using the right tool for the job here. 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Hm, I am not really in the mood to start off a discussion with my project manager ;-)
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;You can get the exact behavior you want from JUnit.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
And I could get it from TestNG if I passed each class in as an individual suite, couldn't I?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Again, if you want class-level logging, I encourage you to take up the 
&lt;br&gt;matter with the TestNG team.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Might be a good idea. As some kind of explanation why I started this discussion on the Surefire corner at all: Surefire 2.3.1 did what I wanted so the first impression after updating to Surefire 2.4 was that it got messed up.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Doesn't this option smell bad to you?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
It's a rather technical/sophisticated option, I agree about that. But aren't &amp;quot;useSystemClassLoader&amp;quot;, &amp;quot;childDelegation&amp;quot; and &amp;quot;forkMode&amp;quot; likewise? Whoever develops tests needs to have proper knowledge about their requirements on the execution runtime and hence, needs to configure the test runner appropriately. The same would apply for this option, default it to &amp;quot;all&amp;quot;, let the experts change it to meet their special needs.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Instead of making this option, wouldn't it be nice if it just logged 
&lt;br&gt;correctly? &amp;nbsp;If TestNG notified us when to log, we could log anything we 
&lt;br&gt;wanted.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
I fear having just another lister in the TestNG framework is not enough. The problem I see here is the following: If Sufefire passes all test classes (say A and B) as a single suite to TestNG, what would TestNG prevent from running them like this:
&lt;br&gt;&amp;nbsp; A.testOne
&lt;br&gt;&amp;nbsp; B.testOne
&lt;br&gt;&amp;nbsp; A.testTwo
&lt;br&gt;&amp;nbsp; B.testTwo
&lt;br&gt;&amp;nbsp; A.testThree
&lt;br&gt;&amp;nbsp; B.testThree
&lt;br&gt;Our test methods have no dependencies that would require a deterministic order. Even if TestNG exposed events for starting/stopping a test class, I still would not get a guarantee that all methods from a single class are run without inter-leaving with methods from other classes to give me that class-level testing feeling. I hardly can see an argument how one could request a change on this behavior. A suite is the outer-most group of tests and as long as I do not specify dependencies, TestNG is free in ordering them.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Surefire is meant to be a wrapper around the underlying test framework; 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
No problems with that. But it's Surefire and not the test framework that aggregates my test classes into a single suite. I am basically asking for an option to control the way how Surefire assembles the suites *before* it passes control to the test framework.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Benjamin Bentmann&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15138325.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15136338</id>
	<title>Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-28T06:45:52Z</published>
	<updated>2008-01-28T06:45:52Z</updated>
	<author>
		<name>Benjamin Bentmann</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Inter-class dependencies are one of TestNG's fundamental features 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Use of this feature is optional. For my sake, call it an &amp;quot;abuse&amp;quot; of TestNG if I run that simple unit tests without inter-class dependencies ;-)
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;[...] but TestNG is meant to support functional/integration tests.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
If I may requote the TestNG marketing slogan, again:
&lt;br&gt;&amp;gt; TestNG is designed to cover all categories of tests: *unit*, [...]
&lt;br&gt;&lt;br&gt;TestNG is not designed only for the fancy tests, it can run the simple unit tests, too. Dan, to me it looks you/Surefire are pushing something like &amp;quot;If you want unit tests, use JUnit, if you want function/integration tests, use TestNG&amp;quot; by punishing those that employ TestNG for the simple use-case. I am neither a JUnit nor TestNG fanatic but I can't follow your XOR-like argument here.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Benjamin Bentmann&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15136338.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15127052</id>
	<title>Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-27T18:06:03Z</published>
	<updated>2008-01-27T18:06:03Z</updated>
	<author>
		<name>dfabulich</name>
	</author>
	<content type="html">Benjamin Bentmann wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; But what I really want is to avoid bothering with suites at all. Sure, 
&lt;br&gt;&amp;gt; TestNG has a powerful suite concept, nice, maybe we may want to use it 
&lt;br&gt;&amp;gt; someday in the future but for now, we have just the simple use-case with 
&lt;br&gt;&amp;gt; non-related test classes, i.e. we are happy by grouping at the class 
&lt;br&gt;&amp;gt; level.
&lt;br&gt;&lt;br&gt;As I said, I don't think you're using the right tool for the job here. 
&lt;br&gt;TestNG is meant to support all that fancy stuff, and behaves a little 
&lt;br&gt;differently for that reason. &amp;nbsp;You can get the exact behavior you want from 
&lt;br&gt;JUnit.
&lt;br&gt;&lt;br&gt;&amp;gt; We have no suite(s), only a directory with some unrelated test classes. 
&lt;br&gt;&amp;gt; Now Surefire goes ahead and creates a suite, automatically, without my 
&lt;br&gt;&amp;gt; control, assuming the entire directory is a single suite. This 
&lt;br&gt;&amp;gt; assumption does not fit our needs.
&lt;br&gt;&lt;br&gt;That's fair, but I claim that this assumption is a good one for people who 
&lt;br&gt;are using TestNG, most of whom pick TestNG over JUnit because they need to 
&lt;br&gt;do that weird stuff.
&lt;br&gt;&lt;br&gt;Again, if you want class-level logging, I encourage you to take up the 
&lt;br&gt;matter with the TestNG team. &amp;nbsp;TestNG isn't meant to work this way today.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; dfabulich wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; That option sounds really confusing. &amp;nbsp;What would you call it? &amp;nbsp;How would
&lt;br&gt;&amp;gt;&amp;gt; you document it? &amp;nbsp;You'd have to know a lot about the guts of Surefire and
&lt;br&gt;&amp;gt;&amp;gt; TestNG for an option like that to make much sense.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Could think of something like &amp;quot;suiteMode=class|package|all&amp;quot;:
&lt;br&gt;&amp;gt; This option controls how Surefire will assemble your test classes into a
&lt;br&gt;&amp;gt; suite. &amp;quot;class&amp;quot; means to run each class individually in its own suite.
&lt;br&gt;&amp;gt; &amp;quot;package&amp;quot; groups all classes from the same package into a separate suite.
&lt;br&gt;&amp;gt; &amp;quot;all&amp;quot; will aggregate all found test classes in a single suite. Each created
&lt;br&gt;&amp;gt; suite will then be passed to the testing framework for execution and will be
&lt;br&gt;&amp;gt; run independently of the other suites. Note that test classes that have
&lt;br&gt;&amp;gt; dependencies on each other, must be executed in the same suite. Therefore,
&lt;br&gt;&amp;gt; the values &amp;quot;class&amp;quot; and &amp;quot;package&amp;quot; should be used with care because Surefire
&lt;br&gt;&amp;gt; itself cannot detect such inter-class dependencies.
&lt;/div&gt;&lt;br&gt;Doesn't this option smell bad to you? &amp;nbsp;It does to me!
&lt;br&gt;&lt;br&gt;Instead of making this option, wouldn't it be nice if it just logged 
&lt;br&gt;correctly? &amp;nbsp;If TestNG notified us when to log, we could log anything we 
&lt;br&gt;wanted.
&lt;br&gt;&lt;br&gt;Surefire is meant to be a wrapper around the underlying test framework; 
&lt;br&gt;it's not meant to provide features that the frameworks lack. &amp;nbsp;I think this 
&lt;br&gt;is one of those cases where trying to provide the feature in Surefire 
&lt;br&gt;would be way harder, and would also be fighting the framework.
&lt;br&gt;&lt;br&gt;&amp;gt; Say one starts of with JUnit, where Surefire executes classes 
&lt;br&gt;&amp;gt; individually. Then one goes and converts his tests to use TestNG (they 
&lt;br&gt;&amp;gt; have a tool for this). Conceptually, you have the same test design, but 
&lt;br&gt;&amp;gt; now Surefire insists on running all classes in a single job/black-box. I 
&lt;br&gt;&amp;gt; am sorry, but I still find this odd since I am lacking the required 
&lt;br&gt;&amp;gt; knowledge about the guts of Surefire and TestNG ;-)
&lt;br&gt;&lt;br&gt;For the record, I agree that the difference between TestNG and JUnit is 
&lt;br&gt;strange. &amp;nbsp;I claim that we only find it odd BECAUSE we have painfully 
&lt;br&gt;learned about these guts... most people don't notice or care about the 
&lt;br&gt;difference.
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15127052.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15126834</id>
	<title>Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-27T17:37:13Z</published>
	<updated>2008-01-27T17:37:13Z</updated>
	<author>
		<name>dfabulich</name>
	</author>
	<content type="html">Jason van Zyl wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Correct me if I'm wrong here Benjamin but I think he's talking about 
&lt;br&gt;&amp;gt; stating what tests you want to run, and how they are grouped 
&lt;br&gt;&amp;gt; declaratively. As a best practice don't use suites and come up with a 
&lt;br&gt;&amp;gt; way in Surefire to group things and avoid grouping of things in code.
&lt;br&gt;&lt;br&gt;Inter-class dependencies are one of TestNG's fundamental features; it's 
&lt;br&gt;arguably the most important architectural difference between TestNG and 
&lt;br&gt;JUnit. &amp;nbsp;As Benjamin pointed out, they are declarative.
&lt;br&gt;&lt;br&gt;&amp;gt; I think it would just be a practice for class to be self-contained, test 
&lt;br&gt;&amp;gt; one thing, and allow wiring up of sets/groups externally.
&lt;br&gt;&lt;br&gt;That's a good practice for unit tests, but TestNG is meant to support 
&lt;br&gt;functional/integration tests. &amp;nbsp;Unlike unit tests, which are meant to be 
&lt;br&gt;isolated and test one thing, TestNG tests are supposed to test more than 
&lt;br&gt;one thing together, and are therefore designed to inter-depend on one 
&lt;br&gt;another.
&lt;br&gt;&lt;br&gt;It's a pretty significant philosophical shift; the TestNG guys wrote a 
&lt;br&gt;whole book about it, blah blah blah. &amp;nbsp;:-)
&lt;br&gt;&lt;br&gt;Dependent test methods
&lt;br&gt;&lt;a href=&quot;http://beust.com/weblog/archives/000171.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://beust.com/weblog/archives/000171.html&lt;/a&gt;&lt;br&gt;Are dependent test methods really evil?
&lt;br&gt;&lt;a href=&quot;http://beust.com/weblog/archives/000259.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://beust.com/weblog/archives/000259.html&lt;/a&gt;&lt;br&gt;Why unit tests are disappearing
&lt;br&gt;&lt;a href=&quot;http://beust.com/weblog/archives/000319.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://beust.com/weblog/archives/000319.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; If this model breaks down then maybe, as I've asked before, it makes sense to 
&lt;br&gt;&amp;gt; create separate plugins for the various test tools.
&lt;br&gt;&lt;br&gt;I'm still on the fence about that, but regardless I don't think this is a 
&lt;br&gt;good candidate reason. &amp;nbsp;Surefire has to handle this problem in the case of 
&lt;br&gt;JUnit suites as well as TestNG suites; the only difference is that in 
&lt;br&gt;JUnit this problem is less important because we think people mostly 
&lt;br&gt;shouldn't write unit tests like that.
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15126834.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15126606</id>
	<title>Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-27T17:10:49Z</published>
	<updated>2008-01-27T17:10:49Z</updated>
	<author>
		<name>Jason van Zyl-2</name>
	</author>
	<content type="html">&lt;br&gt;On 27-Jan-08, at 12:31 PM, Benjamin Bentmann wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jason van Zyl-2 wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Correct me if I'm wrong here Benjamin but I think he's talking about
&lt;br&gt;&amp;gt;&amp;gt; stating what tests you want to run, and how they are grouped
&lt;br&gt;&amp;gt;&amp;gt; declaratively. As a best practice don't use suites and come up with a
&lt;br&gt;&amp;gt;&amp;gt; way in Surefire to group things and avoid grouping of things in code.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Not quite sure if I understand you correctly. A TestNG suite XML &amp;nbsp;
&lt;br&gt;&amp;gt; file is
&lt;br&gt;&amp;gt; quite declarative so I already have the possibility to declaratively &amp;nbsp;
&lt;br&gt;&amp;gt; select
&lt;br&gt;&amp;gt; and group tests. In fear that I can't get Surefire where I wished
&lt;br&gt;&amp;gt; (one-class-per-suite), I opened &lt;a href=&quot;http://jira.codehaus.org/browse/SUREFIRE-438&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/SUREFIRE-438&lt;/a&gt;&lt;br&gt;&amp;gt; which would allow to easily feed a bunch of suite XML files into the &amp;nbsp;
&lt;br&gt;&amp;gt; plugin.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But what I really want is to avoid bothering with suites at all.
&lt;/div&gt;&lt;br&gt;Sorry if I didn't explain it well but we are in 100% agreement. Make &amp;nbsp;
&lt;br&gt;tests simple, no suites, and group declaratively.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sure,
&lt;br&gt;&amp;gt; TestNG has a powerful suite concept, nice, maybe we may want to use it
&lt;br&gt;&amp;gt; someday in the future but for now, we have just the simple use-case &amp;nbsp;
&lt;br&gt;&amp;gt; with
&lt;br&gt;&amp;gt; non-related test classes, i.e. we are happy by grouping at the class &amp;nbsp;
&lt;br&gt;&amp;gt; level.
&lt;br&gt;&amp;gt; Explicitly maintaining suites, either in code or via XML, would just &amp;nbsp;
&lt;br&gt;&amp;gt; be lost
&lt;br&gt;&amp;gt; worktime here (although I already thought about a plugin that &amp;nbsp;
&lt;br&gt;&amp;gt; automatically
&lt;br&gt;&amp;gt; creates single-class suites from the existing test classes and &amp;nbsp;
&lt;br&gt;&amp;gt; prepares the
&lt;br&gt;&amp;gt; dozens of suite files before the actual Surefire run...)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have no suite(s), only a directory with some unrelated test &amp;nbsp;
&lt;br&gt;&amp;gt; classes. Now
&lt;br&gt;&amp;gt; Surefire goes ahead and creates a suite, automatically, without my &amp;nbsp;
&lt;br&gt;&amp;gt; control,
&lt;br&gt;&amp;gt; assuming the entire directory is a single suite. This assumption &amp;nbsp;
&lt;br&gt;&amp;gt; does not
&lt;br&gt;&amp;gt; fit our needs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; dfabulich wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; That option sounds really confusing. &amp;nbsp;What would you call it? &amp;nbsp;How &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; would
&lt;br&gt;&amp;gt;&amp;gt; you document it? &amp;nbsp;You'd have to know a lot about the guts of &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Surefire and
&lt;br&gt;&amp;gt;&amp;gt; TestNG for an option like that to make much sense.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Could think of something like &amp;quot;suiteMode=class|package|all&amp;quot;:
&lt;br&gt;&amp;gt; This option controls how Surefire will assemble your test classes &amp;nbsp;
&lt;br&gt;&amp;gt; into a
&lt;br&gt;&amp;gt; suite. &amp;quot;class&amp;quot; means to run each class individually in its own suite.
&lt;br&gt;&amp;gt; &amp;quot;package&amp;quot; groups all classes from the same package into a separate &amp;nbsp;
&lt;br&gt;&amp;gt; suite.
&lt;br&gt;&amp;gt; &amp;quot;all&amp;quot; will aggregate all found test classes in a single suite. Each &amp;nbsp;
&lt;br&gt;&amp;gt; created
&lt;br&gt;&amp;gt; suite will then be passed to the testing framework for execution and &amp;nbsp;
&lt;br&gt;&amp;gt; will be
&lt;br&gt;&amp;gt; run independently of the other suites. Note that test classes that &amp;nbsp;
&lt;br&gt;&amp;gt; have
&lt;br&gt;&amp;gt; dependencies on each other, must be executed in the same suite. &amp;nbsp;
&lt;br&gt;&amp;gt; Therefore,
&lt;br&gt;&amp;gt; the values &amp;quot;class&amp;quot; and &amp;quot;package&amp;quot; should be used with care because &amp;nbsp;
&lt;br&gt;&amp;gt; Surefire
&lt;br&gt;&amp;gt; itself cannot detect such inter-class dependencies.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; dfabulich wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;TestNG is designed to cover all categories of tests: &amp;nbsp;unit, [...]&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt; If all you're doing is unit tests, you may prefer to use JUnit 4. :-)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Well, no comments ;-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Say one starts of with JUnit, where Surefire executes classes &amp;nbsp;
&lt;br&gt;&amp;gt; individually.
&lt;br&gt;&amp;gt; Then one goes and converts his tests to use TestNG (they have a tool &amp;nbsp;
&lt;br&gt;&amp;gt; for
&lt;br&gt;&amp;gt; this). Conceptually, you have the same test design, but now Surefire &amp;nbsp;
&lt;br&gt;&amp;gt; insists
&lt;br&gt;&amp;gt; on running all classes in a single job/black-box. I am sorry, but I &amp;nbsp;
&lt;br&gt;&amp;gt; still
&lt;br&gt;&amp;gt; find this odd since I am lacking the required knowledge about the &amp;nbsp;
&lt;br&gt;&amp;gt; guts of
&lt;br&gt;&amp;gt; Surefire and TestNG ;-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Benjamin Bentmann
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://www.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15123679.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15123679.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Surefire - Developer mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Jason
&lt;br&gt;&lt;br&gt;----------------------------------------------------------
&lt;br&gt;Jason van Zyl
&lt;br&gt;Founder, &amp;nbsp;Apache Maven
&lt;br&gt;jason at sonatype dot com
&lt;br&gt;----------------------------------------------------------
&lt;br&gt;&lt;br&gt;Simplex sigillum veri. (Simplicity is the seal of truth.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15126606.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15123679</id>
	<title>Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-27T12:31:59Z</published>
	<updated>2008-01-27T12:31:59Z</updated>
	<author>
		<name>Benjamin Bentmann</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Jason van Zyl-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Correct me if I'm wrong here Benjamin but I think he's talking about &amp;nbsp;
&lt;br&gt;stating what tests you want to run, and how they are grouped &amp;nbsp;
&lt;br&gt;declaratively. As a best practice don't use suites and come up with a &amp;nbsp;
&lt;br&gt;way in Surefire to group things and avoid grouping of things in code.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Not quite sure if I understand you correctly. A TestNG suite XML file is quite declarative so I already have the possibility to declaratively select and group tests. In fear that I can't get Surefire where I wished (one-class-per-suite), I opened &lt;a href=&quot;http://jira.codehaus.org/browse/SUREFIRE-438&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/SUREFIRE-438&lt;/a&gt;&amp;nbsp;which would allow to easily feed a bunch of suite XML files into the plugin.
&lt;br&gt;&lt;br&gt;But what I really want is to avoid bothering with suites at all. Sure, TestNG has a powerful suite concept, nice, maybe we may want to use it someday in the future but for now, we have just the simple use-case with non-related test classes, i.e. we are happy by grouping at the class level. Explicitly maintaining suites, either in code or via XML, would just be lost worktime here (although I already thought about a plugin that automatically creates single-class suites from the existing test classes and prepares the dozens of suite files before the actual Surefire run...)
&lt;br&gt;&lt;br&gt;We have no suite(s), only a directory with some unrelated test classes. Now Surefire goes ahead and creates a suite, automatically, without my control, assuming the entire directory is a single suite. This assumption does not fit our needs.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;That option sounds really confusing. &amp;nbsp;What would you call it? &amp;nbsp;How would 
&lt;br&gt;you document it? &amp;nbsp;You'd have to know a lot about the guts of Surefire and 
&lt;br&gt;TestNG for an option like that to make much sense.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Could think of something like &amp;quot;suiteMode=class|package|all&amp;quot;:
&lt;br&gt;&lt;i&gt;This option controls how Surefire will assemble your test classes into a suite. &amp;quot;class&amp;quot; means to run each class individually in its own suite. &amp;quot;package&amp;quot; groups all classes from the same package into a separate suite. &amp;quot;all&amp;quot; will aggregate all found test classes in a single suite. Each created suite will then be passed to the testing framework for execution and will be run independently of the other suites. Note that test classes that have dependencies on each other, must be executed in the same suite. Therefore, the values &amp;quot;class&amp;quot; and &amp;quot;package&amp;quot; should be used with care because Surefire itself cannot detect such inter-class dependencies.
&lt;br&gt;&lt;/i&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dfabulich wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;&amp;quot;TestNG is designed to cover all categories of tests: &amp;nbsp;unit, [...]&amp;quot;
&lt;br&gt;[...]
&lt;br&gt;If all you're doing is unit tests, you may prefer to use JUnit 4. :-)
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Well, no comments ;-)
&lt;br&gt;&lt;br&gt;Say one starts of with JUnit, where Surefire executes classes individually. Then one goes and converts his tests to use TestNG (they have a tool for this). Conceptually, you have the same test design, but now Surefire insists on running all classes in a single job/black-box. I am sorry, but I still find this odd since I am lacking the required knowledge about the guts of Surefire and TestNG ;-)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;&lt;br&gt;Benjamin Bentmann&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15123679.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15122556</id>
	<title>Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-27T10:53:58Z</published>
	<updated>2008-01-27T10:53:58Z</updated>
	<author>
		<name>Jason van Zyl-2</name>
	</author>
	<content type="html">&lt;br&gt;On 25-Jan-08, at 10:59 AM, Dan Fabulich wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Benjamin Bentmann wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I see. Now, if the user can provide an option to Surefire, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; indicating that the unit tests do not have inter-class &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; dependencies, wouldn't this allow to get back the old behavior? &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I.e. enabling Surefire to pass test classes individually into TestNG?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That option sounds really confusing. &amp;nbsp;What would you call it? &amp;nbsp;How &amp;nbsp;
&lt;br&gt;&amp;gt; would you document it? &amp;nbsp;You'd have to know a lot about the guts of &amp;nbsp;
&lt;br&gt;&amp;gt; Surefire and TestNG for an option like that to make much sense.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Correct me if I'm wrong here Benjamin but I think he's talking about &amp;nbsp;
&lt;br&gt;stating what tests you want to run, and how they are grouped &amp;nbsp;
&lt;br&gt;declaratively. As a best practice don't use suites and come up with a &amp;nbsp;
&lt;br&gt;way in Surefire to group things and avoid grouping of things in code.
&lt;br&gt;&lt;br&gt;If this model breaks down then maybe, as I've asked before, it makes &amp;nbsp;
&lt;br&gt;sense to create separate plugins for the various test tools.
&lt;br&gt;&lt;br&gt;&amp;gt; Not to mention that it'd be error prone.
&lt;br&gt;&lt;br&gt;I think it would just be a practice for class to be self-contained, &amp;nbsp;
&lt;br&gt;test one thing, and allow wiring up of sets/groups externally.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Developer X would assess the tests, verifying that there are no &amp;nbsp;
&lt;br&gt;&amp;gt; inter-class dependencies, and turn on the flag. &amp;nbsp;Later, developer Y &amp;nbsp;
&lt;br&gt;&amp;gt; could introduce an inter-class dependency and go to run the tests, &amp;nbsp;
&lt;br&gt;&amp;gt; but find that it's not working. &amp;nbsp;It'd be hard to figure out why &amp;nbsp;
&lt;br&gt;&amp;gt; without knowing a lot about how Surefire is doing its job.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; More generally, I don't think class-level reporting really makes &amp;nbsp;
&lt;br&gt;&amp;gt; sense in TestNG as it's designed today. &amp;nbsp;Right now, TestNG provides &amp;nbsp;
&lt;br&gt;&amp;gt; listeners with the following notifications:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; onStart
&lt;br&gt;&amp;gt; onTestStart
&lt;br&gt;&amp;gt; onTestSuccess
&lt;br&gt;&amp;gt; onTestFailure
&lt;br&gt;&amp;gt; onTestSkipped
&lt;br&gt;&amp;gt; onTestFailedButWithinSuccessPercentage
&lt;br&gt;&amp;gt; onConfigurationSuccess
&lt;br&gt;&amp;gt; onConfigurationFailure
&lt;br&gt;&amp;gt; onConfigurationSkip
&lt;br&gt;&amp;gt; onFinish
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Note that there's nothing here about &amp;quot;onClassStart/Finish&amp;quot; or even &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;quot;onGroupStart/Finish&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If TestNG exposed a listener, we could easily attach to it, but I &amp;nbsp;
&lt;br&gt;&amp;gt; see that as a feature of TestNG. &amp;nbsp;We could certainly try to write &amp;nbsp;
&lt;br&gt;&amp;gt; TestNG features in Surefire, but the TestNG code knows best whether, &amp;nbsp;
&lt;br&gt;&amp;gt; for example, your classes have any inter-dependencies, when your &amp;nbsp;
&lt;br&gt;&amp;gt; classes start and stop, and more generally how to construct a full &amp;nbsp;
&lt;br&gt;&amp;gt; test run comprised of suites, groups, classes and tests.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Surefire shouldn't be in the business of reimplementing that logic, &amp;nbsp;
&lt;br&gt;&amp;gt; especially since we expect this feature to be generally useful. &amp;nbsp;It &amp;nbsp;
&lt;br&gt;&amp;gt; should be a part of TestNG, if it matters at all.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I would not have any problems with a single file per method. &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Indeed, I think
&lt;br&gt;&amp;gt;&amp;gt; I like the idea: Test methods are the units that succeed or fail, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; so if test
&lt;br&gt;&amp;gt;&amp;gt; method TestClass.testFoo() fails, I would investigate
&lt;br&gt;&amp;gt;&amp;gt; TestClass.testFoo-output.txt and can easily concentrate on its output
&lt;br&gt;&amp;gt;&amp;gt; without any need to skip over the output from all the other &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; successful
&lt;br&gt;&amp;gt;&amp;gt; methods. I think that would be worth another option ;-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;TestNG is designed to cover all categories of tests: &amp;nbsp;unit, &amp;nbsp;
&lt;br&gt;&amp;gt; functional, end-to-end, integration, etc...&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In TestNG, especially when one method @dependsOn another method, the &amp;nbsp;
&lt;br&gt;&amp;gt; test failures aren't units, and aren't even meant to be units. &amp;nbsp; 
&lt;br&gt;&amp;gt; (This can be a huge benefit for slow integration tests, where &amp;nbsp;
&lt;br&gt;&amp;gt; earlier tests leave behind fixtures that later tests are meant to &amp;nbsp;
&lt;br&gt;&amp;gt; consume.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If all you're doing is unit tests, you may prefer to use JUnit 4. :-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyway, in thinking about it a little harder I realized that we &amp;nbsp;
&lt;br&gt;&amp;gt; can't even necessarily split the stdout into one file per method, &amp;nbsp;
&lt;br&gt;&amp;gt; since the tests may be run in parallel!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm pretty sure we can do that logging thing, at least. :-p
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Dan
&lt;/div&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Jason
&lt;br&gt;&lt;br&gt;----------------------------------------------------------
&lt;br&gt;Jason van Zyl
&lt;br&gt;Founder, &amp;nbsp;Apache Maven
&lt;br&gt;jason at sonatype dot com
&lt;br&gt;----------------------------------------------------------
&lt;br&gt;&lt;br&gt;We know what we are, but know not what we may be.
&lt;br&gt;&lt;br&gt;-- Shakespeare 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15122556.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15100764</id>
	<title>Re: SUREFIRE-428: integration test to check class path order</title>
	<published>2008-01-25T17:34:57Z</published>
	<updated>2008-01-25T17:34:57Z</updated>
	<author>
		<name>Brett Porter-7</name>
	</author>
	<content type="html">It would seem to be best in Surefire to me - the assertion in Maven &amp;nbsp;
&lt;br&gt;should really be covered by a unit test?
&lt;br&gt;&lt;br&gt;On 26/01/2008, at 5:25 AM, Dan Fabulich wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Class path ordering is tricky, and changed recently. &amp;nbsp;Benjamin &amp;nbsp;
&lt;br&gt;&amp;gt; Bentmann provides a regression test in SUREFIRE-428.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, I'm not certain if I should apply it in Surefire, because &amp;nbsp;
&lt;br&gt;&amp;gt; we use those integration tests to verify backwards compatibility &amp;nbsp;
&lt;br&gt;&amp;gt; with older versions of Maven.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My initial thought was that perhaps the test should be applied in &amp;nbsp;
&lt;br&gt;&amp;gt; core-integration-testing; there are a few small Surefire integration &amp;nbsp;
&lt;br&gt;&amp;gt; tests there (which I think is correct), and I think this could join &amp;nbsp;
&lt;br&gt;&amp;gt; them to prevent regression for MNG-3118.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then again, since it's fundamentally an integration test, it doesn't &amp;nbsp;
&lt;br&gt;&amp;gt; specifically belong to either side, so maybe Surefire is the best &amp;nbsp;
&lt;br&gt;&amp;gt; place to install it...?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thoughts?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Dan
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SUREFIRE-428%3A-integration-test-to-check-class-path-order-tp15097117p15100764.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-15100575</id>
	<title>Re: [testng-users] Re: Test Suites, Ant, Surefire, and JunitReport</title>
	<published>2008-01-25T15:15:35Z</published>
	<updated>2008-01-25T15:15:35Z</updated>
	<author>
		<name>Steve Loughran-7</name>
	</author>
	<content type="html">On Jan 25, 2008 5:04 PM, Dan Fabulich &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=15100575&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dan@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Steve Loughran wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; What I propose is that, in order to avoid destroying information, Surefire
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; should generate XML that looks like Example 7 (all-in-one-file), and not
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; try to fake it to look like Example 2 (one-file-per-class). &amp;nbsp;(TestNG's
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; junit-like output also generates files like Example 7.) &amp;nbsp;However, when it
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; comes time to generate an HTML report, surefire-reports will discard
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; suite-level information, and treat large suites like Example 7 as if they
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; had been presented in separate files like Example 2. &amp;nbsp;I'd argue that all
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; of the other JunitReport-like tools (including Ant) should probably follow
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the same lead.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I think that if everyone else has a bug, its hard to call it a bug. More
&lt;br&gt;&amp;gt; &amp;gt; a presentation choice :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'd thought somebody might say that! :-) &amp;nbsp;Still, do you think TestNG and
&lt;br&gt;&amp;gt; other tools should therefore generate multiple XML files, to be compatible
&lt;br&gt;&amp;gt; with the other (arguably broken) reporting tools?
&lt;/div&gt;&lt;br&gt;No,
&lt;br&gt;&lt;br&gt;* junit report will take other sets of XSL sheets than those built in
&lt;br&gt;to Ant's own JAR. This allows anyone to fix the XSLs without waiting
&lt;br&gt;for ant's (fairly mature) release cycle.
&lt;br&gt;* CI tools are a separate issue. Don't know there
&lt;br&gt;&lt;br&gt;Looking at the reports -and trying to imagine a time where I ever get
&lt;br&gt;to stop making meta-RPM-RPMs (don't ask), I do want to push the test
&lt;br&gt;formats forward in a way everyone is happy. I really dont like the way
&lt;br&gt;the current stuff sticks summary info as toplevel attributes (time,
&lt;br&gt;results), as it stops us streaming out the XML as we go. I'm starting
&lt;br&gt;to wonder if we couldnt move to a new format, and have the option of
&lt;br&gt;XSL generation of the legacy stuff, purely for those tools that havent
&lt;br&gt;been upgraded in sync.
&lt;br&gt;&lt;br&gt;-steve
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Surefire---Developer-f21513.html&quot; embed=&quot;fixTarget[21513]&quot; target=&quot;_top&quot; &gt;Surefire - Developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Test-Suites%2C-Ant%2C-Surefire%2C-and-JunitReport-tp15076378p15100575.html" />
</entry>

</feed>
