[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Ant+JUnit : "taskdef A class needed ... cannot be found: junit/framework/Test"

Sounds like you have everything set up correctly.

Can you still reproduce on Eclipse 3.2 RC4?
If so please log a bug report so we will no longer tick you off :-)

Thanks
Darins

"Christophe Porteneuve" <tdd@xxxxxxxxx> wrote in message
news:e49nrs$m70$1@xxxxxxxxxxxxxxxxxxxx
> Hello all,
>
> Sorry to ask about something that sure was answered a bunch of times,
> but Eclipse.org's newsgroups being authenticated prevents GoogleGroups
> indexing for backlog search.
>
> I've been automating JUnit through tasks junit and junitreport, and it
> sure all works well.  The ant-junit.jar lib is part of my Ant Home
> library list in the Ant Runtime prefs set, so it all works fine.
>
> However, the workbench keeps sensing a warning that states that the
> taskdef for the optional task junitreport requires JUnit's Test class
> and doesn't find it.
>
> Which, naturally, it does.  After all, JUnit's core lib was imported in
> my project's build path the moment I created its first test case, *and*
> it is also present in Ant Runtime's Global Entries prefs.
>
> So how do I fix this warning?  I strive for a clear Problems view, and
> this ticks me off.
>
> Thanks!
>
> -- 
> Christophe Porteneuve
> Chargé d'Enseignement et de Projet
> Responsable spécialisation SIGL