From: Keats K. <ke...@xa...> - 2006-03-30 00:08:56
|
Thanks for giving it a shot Sven. I too always find getting the unit test configured properly to be a chore. The JUnitTask is part of a jar called ant-junit.jar that comes with the Apache Ant distro: http://ant.apache.org/bindownload.cgi Keats Sven Schliesing wrote: > I did so, and after replacing the according imports it looks ok. Would > say: my application still runs like I would expect. :) > To my shame I have to admit that I couldn't get webmacros unit-test > running. > I'm not so familiar with ant (using maven for my projects), so I can't > fix the errors that I get: > > D:\workspace\webmacro\test\build.xml:57: Could not create task or type > of type: junit. > > And after commenting in this element in test/build.xml: > <!-- > <taskdef name="junit" > classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"> > <classpath refid="class.path"/> > </taskdef> > --> > I get > D:\workspace\webmacro\test\build.xml:29: taskdef A class needed by > class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be > found: junit/framework/Test > > > Maybe it's just too late this evening... > > Greets Sven |