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
<echofloripa.yell@gmail.com></i><br>Reply-To:
<i>echofloripa.yell@gmail.com</i><br>To: <i>Maven Users List
<users@maven.apache.org></i><br>Subject: <i>tests not being
run</i><br>Date: <i>Fri, 16 Sep 2005 16:19:50 +0100</i><br>>I'm using
maven 1.1 beta 2, win xp<br>><br>>I have a multiproject and my tests
are not being run.<br>><br>>Junit tests summary:<br>>Tests Errors
Failures Success rate Time(s)<br>>0 0 0
? 0.00<br>><br>>But the tests appear at tests
xref.<br>><br>>I don't have any property telling the tests to be
skipped<br>>here goes my project.xml file:<br>><br>><?xml
version="1.0"
encoding="UTF-8"?><br>><project><br>>
<extend>../com.yell.commonbuild/project.xml</extend><br>>
<pomVersion>3</pomVersion><br>> <name>Thesaurus
Subproject</name><br>>
<package>com.yell.thesaurus</package><br>>
<shortDescription>TODO:put here the proper description
for<br>>thesaurus Subproject</shortDescription><br>>
<developers>... </developers><br>>
<build><br>>
<sourceDirectory>src</sourceDirectory><br>>
<unitTestSourceDirectory>testsrc</unitTestSourceDirectory><br>>
<unitTest><br>>
<includes><br>>
<include>*Test.java</include><br>>
<include>*TestCase.java</include><br>>
</includes><br>> </unitTest><br>>
</build><br>>
<artifactId>com.yell.thesaurus</artifactId><br>>
<currentVersion>1.0-SNAPSHOT</currentVersion><br>>
<dependencies><br>>...</project><br>><br>>---------------------------------------------------------------------<br>>To
unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>>For
additional commands, e-mail:
users-help@maven.apache.org<br>><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