ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: JUnit + Problem
Date Sat, 19 Jul 2003 10:44:43 GMT
Aloizio,

this one is strange :

    [junit] Running
teste.siace.remessaanual.administracao.entidade.TesteMunicipio
    [junit]
java.lang.NoClassDefFoundError: siace/teste/junit/framework/TestCase

I would rather have expected junit/framework/TestCase here

can it be that in TesteMunicipio the code says (wrongly)
extends siace.test.junit.framework.TestCase
instead of
extends junit.framework.TestCase

All your other tests are failing too, but the output does not show why they
are failing.
could you do the following :
1)
printsummary="withOutAndErr"
instead of
printsummary="true"

2)
<formatter type="plain"/> instead of "xml"

3)
Also run ant in verbose mode will give you more explanations about what is
happening.
To do this, just do :
ant -verbose -f somebuild.xml mytarget


4) try to figure out yourself what is wrong then, and come back to the list
if you do not find.

5)

In search for examples of well setup tests, download the source code of ant.
The directory src/testcases contains the source code of the testcases,
src/etc/testcases contains the build files and sample files used by ant's
own tests.

Cheers
Antoine


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message