Re: Cannot run tests
Maurizio Brilli <[email protected]> Thu, 15 Jul 2004 09:27:37 +0200
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
Shash,
I took for granted that it wasn't a classpath problem, that's why I
didn't name the classpath. Anyway, at the beginning of the task, the
output says:
keel_test:tests:
[echo] Finding and Running all unit tests in current deployment:
configuration in classpath [...]
and, among the many others, there is also a junit-3.8.1.jar.
Nevertheless, I did what you told me to, and it worked. So, I understood
the classpath it was talking about was the classpath for the tests, not
the task itself.
Thanks very much.
Ciao
Maurizio
Sasvata (Shash) Chatterjee ha scritto:
> Maurizio,
>
> This is an Ant setup problem. You need to put junit.jar in
> $ANT_HOME/lib.
>
> Shash
>
> Maurizio Brilli wrote:
>
>> Hi everybody,
>> when I run "ant tests", I always get the following message:
>>
>> BUILD FAILED
>> C:\java\keel\keel-build\import\keel-project.xml:58: Following error
>> occured while executing this line
>> C:\java\keel\keel-build\import\keel-test.xml:65: Following error
>> occured while executing this line
>> C:\java\keel\keel-build\import\keel-test.xml:33: Could not create
>> task or type of type: junit.
>>
>> Ant could not find the task or a class this task relies upon.
>>
>> I tried to follow the instructions that ant gives afterwards, but
>> there's only one strange thing: although ant says I might be missing
>> "optional.jar", there doesn't appear to be any such file in the
>> current version.
>>
>> Has anybody got any suggestions?
>> Ciao
>> Maurizio
>> _______________________________________________
>> User mailing list
>> [email protected]
>> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
>
>
>
> _______________________________________________
> User mailing list
> [email protected]
> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
>