ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Sumit.Srivast...@ubs.com>
Subject RE: Junit tasks with TestSuite
Date Fri, 19 Oct 2007 16:11:07 GMT
Hi Steve,
	None of the ANT utilities (debug,verbose,diag) show up anyything
RED, all looks green.
Yes, It goes through IDE pretty clean. And the TestSuite (where it
hangs,) is not expecting any User inputs.
I don't know where it is getting stuck.
Attached is the TestSuite file

 


Warm Regards,
Sumit Srivastava
Voice : (203) 719 - 5894
Email :Sumit.Srivastava@ubs.com
Chat  :srivassb

To go far, explore first what is near..

-----Original Message-----
From: Steve Loughran [mailto:stevel@apache.org] 
Sent: Friday, October 19, 2007 11:49 AM
To: Ant Users List
Subject: Re: Junit tasks with TestSuite

Sumit.Srivastava@ubs.com wrote:
> Hi All,
>         I am using Junit task for the Unit testing , following is my 
> task
> 
>                         <junit printsummary="yes" haltonfailure="no">
>                                 <classpath refid="test.pathrefs" />
>                                 <formatter type="plain"/>
>                                
>                                 <batchtest fork="yes" 
> todir="${tests.report}">
>                                         fileset dir="${src.tests}">
>                                         include
name="**/*Test*.java"/>
>                                         </fileset>
>                                 </batchtest>
>                         </junit>
> 
> When the same is initiated from the Command prompt, it just hangs when

> it finds a *TestSuite.java file.

do you mean Ant hangs? And presumably it works on the IDE?

> 
> I am using Ant 1.7.0 and have put the following in the classpath :
> 
>                 <pathelement
> location="C:/apache-ant-1.7.0/lib/ant-junit.jar"/>
>                 <fileset dir="C:/apache-ant-1.7.0/lib/">
>                         <include name="**/*.jar"/>
>                 </fileset >
> 
> 
> Any reason why is it happening ? Please help

1. what does a -verbose or -debug run do?
2. what does ant -diagnostics say?
3. do you have any tests that are looking for user input?

-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org


Mime
View raw message