You just have test faillure look in target/test-reports/*.txt to get them.
Copy test in src for jar:install works of course in that case your test
classes are not execute just compile (as it is do when you execute your
test).
Nicolas
jsona laio <[EMAIL PROTECTED]>
22/09/2004 10:48
Veuillez r�pondre � "Maven Users List"
Pour : Maven Users List <[EMAIL PROTECTED]>
cc :
Objet : unit test fail problem
hi, maven:
when i learn how to use maven, via following the steps
in theserverside.com
(http://www.theserverside.com/articles/article.tss?l=MavenMagic),
i encounter a problem. the test files (unit test) does
not compile. therefore, when i issued command "maven
jar:install" the unit test failed and has the message
followed:
==============BEG
test:test:
[junit] Running net.sf.maven.j2ee.DemoTest
[junit] Tests run: 1, Failures: 1, Errors: 0, Time
elapsed: 0.25 sec
[junit] [ERROR] TEST net.sf.maven.j2ee.DemoTest
FAILED
BUILD FAILED
==============END
but if i copy the unit test file to the source file
folder, issuing the command java:compile and
jar:install would work. why it doesn't work, even
though i specify the unitTestSourceDirectory tag in
build section in project.xml? whould anyone can tell
me the reasons?
i appreciate it. sincerely.
jason
==========project.xml snip ==========BEG
...<!-- build section -->
<build>
<nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress>
<sourceDirectory>${basedir}/src/java</sourceDirectory>
<unitTestSourceDirectory>${basedir}/test/java</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
</unitTest>
<resources>
<resource>
<directory>${basedir}/src/conf</directory>
<includes>
<include>*.properties</include>
</includes>
</resource>
</resources>
</build>
...
==========project.xml snip ==========END
====env=====BEG
maven-1.0
XP
====env=====END
___________________________________________________________ALL-NEW Yahoo!
Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]