My junit element in the build file is as follows:

<junit maxmemory="1024m"
               fork="on"
               jvm="java"
               clonevm="true"
               forkmode="perTest"
               printsummary="on"
               includeantruntime="true"
               showoutput="yes"
               haltonerror="false"
               haltonfailure="false"
               failureproperty="junitfail"
               errorproperty="juniterror">

            <sysproperty key="user.dir" value="${basedir}"/>
            
            <classpath>
                <fileset dir="${classes.dir}" includes="**/*.class"/>
                <fileset dir="${test.classes.dir}"
includes="**/?*Fit.class"/>
                <fileset refid="test.fileset"/>
            </classpath>

            <batchtest>
                <fileset dir="${test.classes.dir}">
                    <include name="**/*Fit.class"/>
                </fileset>
            </batchtest>
</junit>

I've named my junit tests as *Fit.java, and that is my Requirement. 
----------------------------------

lkamal wrote:
> 
> How do you call the test with your build file? Does your target with the
> test start execution?
> 
> 
> ---------------------------------------
> http://lkamal.blogspot.com
> 
> 
> On Tue, Oct 7, 2008 at 3:53 PM, Ram.s <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hi all,
>>
>> I'm running junit tests from my IntelliJ IDEA, and the test has no
>> problems
>> and is successful.
>> But when i wrote a junit target in my build file to run this test, its
>> saying the test has failed.
>>
>> I dont think the target is executing the test atall .
>>
>> Its urgent,
>> Please, can anyone come up with some ideas..?
>>
>> Thank You in advance,
>> Ram.s
>> --
>> View this message in context:
>> http://www.nabble.com/Junit-tests-failing-through-ant%2C-but-succesful-when-run-from-IDE-tp19855358p19855358.html
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Junit-tests-failing-through-ant%2C-but-succesful-when-run-from-IDE-tp19855358p19855975.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to