Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes running junit from ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

running junit from ant

urvi kalia
Greenhorn

Joined: Aug 22, 2006
Posts: 4
i am trying to run junitusing ant script .
coded in build file is --
<target name="Run JUnit" description="runs junit">
<echo message="Running Junit" level="info"/>
<junit>

<test name="junitTestClient2"></test>
<classpath refid="testapp-classpath"/>
<formatter type="plain" usefile="false"/>
</junit>
</target>

when i run this --
build failed.
due to classnotfoundexception --junitTestclient2

what do i need to do?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Please don't post the same question in multiple forums. It creates duplicate conversations and wastes the time of the people trying to help you.

Thanks,
Dave
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: running junit from ant
 
Similar Threads
Why doesn't the JUnit test OUTPUT appear using the Ant build?
[junit] java.lang.ClassNotFoundException: UserActivityTest
Junit with ant
running junit from ant
generate junit reports