Try using <include>**/*Test.java</include> etc.

**/* means within subdirectories, and this is probably the reason if the test files are not directly in
testsrc but are in subdirectories due to being in packages etc.

Mike


<BLOCKQUOTE style='PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #A0C6E5 2px solid; MARGIN-RIGHT: 0px'><font style='FONT-SIZE:11px;FONT-FAMILY:tahoma,sans-serif'><hr color=#A0C6E5 size=1> From: <i>emerson cargnin &lt;[EMAIL PROTECTED]&gt;</i><br>Reply-To: <i>[EMAIL PROTECTED]</i><br>To: <i>Maven Users List &lt;[email protected]&gt;</i><br>Subject: <i>tests not being run</i><br>Date: <i>Fri, 16 Sep 2005 16:19:50 +0100</i><br>&gt;I'm using maven 1.1 beta 2, win xp<br>&gt;<br>&gt;I have a multiproject and my tests are not being run.<br>&gt;<br>&gt;Junit tests summary:<br>&gt;Tests Errors Failures Success rate Time(s)<br>&gt;0 0 0 ? 0.00<br>&gt;<br>&gt;But the tests appear at tests xref.<br>&gt;<br>&gt;I don't have any property telling the tests to be skipped<br>&gt;here goes my project.xml file:<br>&gt;<br>&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&gt;&lt;project&gt;<br>&gt; &lt;extend&gt;../com.yell.commonbuild/project.xml&lt;/extend&gt;<br>&gt; &lt;pomVersion&gt;3&lt;/pomVersion&gt;<br>&gt; &lt;name&gt;Thesaurus Subproject&lt;/name&gt;<br>&gt; &lt;package&gt;com.yell.thesaurus&lt;/package&gt;<br>&gt; &lt;shortDescription&gt;TODO:put here the proper description for<br>&gt;thesaurus Subproject&lt;/shortDescription&gt;<br>&gt; &lt;developers&gt;... &lt;/developers&gt;<br>&gt; &lt;build&gt;<br>&gt; &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;<br>&gt; &lt;unitTestSourceDirectory&gt;testsrc&lt;/unitTestSourceDirectory&gt;<br>&gt; &lt;unitTest&gt;<br>&gt; &lt;includes&gt;<br>&gt; &lt;include&gt;*Test.java&lt;/include&gt;<br>&gt; &lt;include&gt;*TestCase.java&lt;/include&gt;<br>&gt; &lt;/includes&gt;<br>&gt; &lt;/unitTest&gt;<br>&gt; &lt;/build&gt;<br>&gt; &lt;artifactId&gt;com.yell.thesaurus&lt;/artifactId&gt;<br>&gt; &lt;currentVersion&gt;1.0-SNAPSHOT&lt;/currentVersion&gt;<br>&gt; &lt;dependencies&gt;<br>&gt;...&lt;/project&gt;<br>&gt;<br>&gt;---------------------------------------------------------------------<br>&gt;To unsubscribe, e-mail: [EMAIL PROTECTED]<br>&gt;For additional commands, e-mail: [EMAIL PROTECTED]<br>&gt;<br></font></BLOCKQUOTE>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to