You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by emerson cargnin <ec...@gmail.com> on 2005/09/16 17:14:49 UTC

tests not being run

I'm using maven 1.1 beta 2, win xp

I have a multiproject and my tests are not being run.

Junit tests summary:
Tests  	Errors  	Failures  	Success rate  	Time(s)
0 	0 	0 	? 	0.00

But the tests appear at tests xref.

I don't have any property telling the tests to be skipped
here goes my project.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<project>
    <extend>../com.yell.commonbuild/project.xml</extend>
    <pomVersion>3</pomVersion>
    <name>Thesaurus Subproject</name>
    <package>com.yell.thesaurus</package>
    <shortDescription>TODO:put here the proper description for
thesaurus Subproject</shortDescription>
    <developers>...    </developers>
    	<build>
		<sourceDirectory>src</sourceDirectory>
		<unitTestSourceDirectory>testsrc</unitTestSourceDirectory>
		<unitTest>
			<includes>
				<include>*Test.java</include>
				<include>*TestCase.java</include>
			</includes>
		</unitTest>
	</build>
    <artifactId>com.yell.thesaurus</artifactId>
    <currentVersion>1.0-SNAPSHOT</currentVersion>
    <dependencies>
...</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: tests not being run

Posted by Michael Owen <mi...@hotmail.com>.

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;echofloripa.yell@gmail.com&gt;</i><br>Reply-To:  
<i>echofloripa.yell@gmail.com</i><br>To:  <i>Maven Users List 
&lt;users@maven.apache.org&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: users-unsubscribe@maven.apache.org<br>&gt;For 
additional commands, e-mail: 
users-help@maven.apache.org<br>&gt;<br></font></BLOCKQUOTE>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


tests not being run

Posted by emerson cargnin <ec...@gmail.com>.
I'm using maven 1.1 beta 2, win xp

I have a multiproject and my tests are not being run.

Junit tests summary:
Tests   Errors          Failures        Success rate    Time(s)
0       0       0       ?       0.00

But the tests appear at tests xref.

I don't have any property telling the tests to be skipped
here goes my project.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<project>
   <extend>../com.yell.commonbuild/project.xml</extend>
   <pomVersion>3</pomVersion>
   <name>Thesaurus Subproject</name>
   <package>com.yell.thesaurus</package>
   <shortDescription>TODO:put here the proper description for
thesaurus Subproject</shortDescription>
   <developers>...    </developers>
       <build>
               <sourceDirectory>src</sourceDirectory>
               <unitTestSourceDirectory>testsrc</unitTestSourceDirectory>
               <unitTest>
                       <includes>
                               <include>*Test.java</include>
                               <include>*TestCase.java</include>
                       </includes>
               </unitTest>
       </build>
   <artifactId>com.yell.thesaurus</artifactId>
   <currentVersion>1.0-SNAPSHOT</currentVersion>
   <dependencies>
...</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org