Question regarding ant and junit

View: New views
3 Messages — Rating Filter:   Alert me  

Question regarding ant and junit

by vkpandit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://junit.sourceforge.net/doc/faq/faq.htm#organize_1

Using this article I followed the instrunctions under Running Tests:
In step 3 I have the full package of the test in
<test name="${com.test.package.ProgramTest}"/>

I am getting a ClassNotFoundException.  Anyone have a suggestion on how to fix it?

Thanks,

Veena


Re: Question regarding ant and junit

by Prathibha G :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Veena,
 
Looks like simple problem.
 
You need to specify the class to be executed directly. In ant script $"" refers to some variable whose value is set in the script.
 
Try with this it should work
 
<test name="com. test.package. ProgramTest"/>

 
Regards,
Prathibha


--- On Tue, 22/9/09, veena_kris2003 <v.kris21@...> wrote:


From: veena_kris2003 <v.kris21@...>
Subject: [junit] Question regarding ant and junit
To: junit@...
Date: Tuesday, 22 September, 2009, 7:37 PM


 



http://junit. sourceforge. net/doc/faq/ faq.htm#organize _1

Using this article I followed the instrunctions under Running Tests:
In step 3 I have the full package of the test in
<test name="${com. test.package. ProgramTest} "/>

I am getting a ClassNotFoundExcept ion. Anyone have a suggestion on how to fix it?

Thanks,

Veena

















      New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/

[Non-text portions of this message have been removed]


Re: Question regarding ant and junit

by Georg-21 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In junit@..., "veena_kris2003" <v.kris21@...> wrote:

>
> http://junit.sourceforge.net/doc/faq/faq.htm#organize_1
>
> Using this article I followed the instrunctions under Running Tests:
> In step 3 I have the full package of the test in
> <test name="${com.test.package.ProgramTest}"/>
>
> I am getting a ClassNotFoundException.  Anyone have a suggestion on how to fix it?
>
> Thanks,
>
> Veena
Maybe - which class is missing?

Georg