<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="http://www.kai-mai.com">
<channel>
 <title>Kai Mai&#039;s Blog - Take Back the Web - Nodes for testing</title>
 <link>http://www.kai-mai.com/tags/testing</link>
 <description>Nodes containing the tag testing</description>
 <language>en</language>
<item>
 <title>The Workable Configuration for TestNG, Maven 2, SureFire, and Ecplise</title>
 <link>http://www.kai-mai.com/node/96</link>
 <description>&lt;p&gt;
I started to use TestNG for testing in Java today.  and it took me a while to find out that the workable Configuration for &lt;a href=&quot;http://testng.org/&quot;&gt;TestNG&lt;/a&gt;, &lt;a href=&quot;http://maven.apache.org/plugins/maven-surefire-plugin/&quot;&gt;Maven 2&#039;s Surefire&lt;/a&gt;, is:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt; TestNG 5.1, 
&lt;li&gt; Surefire 2.3
&lt;/ul&gt;
&lt;p&gt;
The real important thing is to specify &amp;lt;classifier&amp;gt;jdk15&amp;lt;/classifier&amp;gt; for JDK 1.5+, or &amp;lt;classifier&amp;gt;jdk14&amp;lt;/classifier&amp;gt; for JDK 1.4 in your pom file.  The reference can be found &lt;a href=&quot;http://maven.apache.org/plugins/maven-surefire-plugin/testng.html&quot;&gt;here&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
If you don&#039;t specify the classifier, it seems to run in jdk14 mode.  so all of my tests using annotations didn&#039;t run with Maven.  
&lt;/p&gt;
&lt;p class=&quot;awTags_TagLinks&quot;&gt;Tags: &lt;a href=&quot;tags/47&quot;&gt;java&lt;/a&gt; &lt;a href=&quot;tags/57&quot;&gt;eclipse&lt;/a&gt; &lt;a href=&quot;tags/115&quot;&gt;testng&lt;/a&gt; &lt;a href=&quot;tags/116&quot;&gt;maven&lt;/a&gt; &lt;a href=&quot;tags/117&quot;&gt;surefire&lt;/a&gt; &lt;a href=&quot;tags/118&quot;&gt;testing&lt;/a&gt; &lt;/p&gt;</description>
 <category domain="http://www.technorati.com/tag">java</category>
 <category domain="http://www.technorati.com/tag">eclipse</category>
 <category domain="http://www.technorati.com/tag">testng</category>
 <category domain="http://www.technorati.com/tag">maven</category>
 <category domain="http://www.technorati.com/tag">surefire</category>
 <category domain="http://www.technorati.com/tag">testing</category>
 <pubDate>Wed, 02 May 2007 22:19:34 -0700</pubDate>
</item>
</channel>
</rss>

