ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ram.s" <krishm...@hotmail.com>
Subject Re: Junit tests failing through ant, but succesful when run from IDE
Date Tue, 07 Oct 2008 11:17:36 GMT

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 <krishme.s@hotmail.com> 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: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> 

-- 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message