ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: JUnit task
Date Tue, 06 Dec 2005 10:10:51 GMT
<classpath>
    <pathelement location="/home/andy/junit3.8.1/junit.jar"/>
    <pathelement location="${test.classes}"/>
</classpath> 


Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Jon Skeet [mailto:Jon.Skeet@clearswift.com] 
>Gesendet: Dienstag, 6. Dezember 2005 11:06
>An: Ant Users List
>Betreff: RE: JUnit task
>
>> > > so it seems the fileset bit works (finds the test) but
>> JUnit doesn't
>> >have
>> > > the classpath.
>> >
>> >Simply because you didn't provide any ;-)
>> >
>> >You'd need a nested <classpath> (within <junit>) with at least your

>> >"testing" directory, and any other jar(s) or directory(ies)
>> required to
>> >run the tests. --DD
>> 
>> At the danger of sounding like I want this spoon fed....
>> 
>> I have tried every combination I can think of.  My tests only depend 
>> on JUnit so I can't see why the following gives the same error 
>> (declared inside the junit tag)..
>>          <classpath>
>>            <pathelement location="/home/andy/junit3.8.1/junit.jar"/>
>>            <pathelement location="${basedir}"/>
>>          </classpath>
>
>That's given your basedir as a pathelement - how about giving 
>it the "testing" directory instead? Isn't that the base of the 
>testing classes?
>
>Jon
>
>
>Clearswift monitors, controls and protects all its messaging 
>traffic in compliance with its corporate email policy using 
>Clearswift products.
>Find out more about Clearswift, its solutions and services at 
>http://www.clearswift.com
>
>This communication is confidential and may contain privileged 
>information intended solely for the named addressee(s). It may 
>not be used or disclosed except for the purpose for which it 
>has been sent. If you are not the intended recipient, you must 
>not copy, distribute or take any action in reliance on it. 
>Unless expressly stated, opinions in this message are those of 
>the individual sender and not of Clearswift. If you have 
>received this communication in error, please notify Clearswift 
>by emailing support@clearswift.com quoting the sender and 
>delete the message and any attached documents. Clearswift 
>accepts no liability or responsibility for any onward 
>transmission or use of emails and attachments having left the 
>Clearswift domain.
>
>This footnote confirms that this email message has been swept 
>by MIMEsweeper for Content Security threats, including 
>computer viruses.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message