For Programmers: Free Programming Magazines  


Home > Archive > Extreme Programming > September 2005 > Running a single unit test case









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Running a single unit test case
karanamsubbarao@gmail.com

2005-09-09, 3:56 am

I want to create the task which takes the selected file in Eclipse
Package Explorer and want to run single stand alone unit test

I know you can specify the <test name = com.xxx.xxx.XXX"> and run the
test, but I should be able to select programmatically

<junit printsummary="on" fork="yes" dir="${__deploy.app.root}/bin"
failureproperty="testfailed" haltonfailure="no" showoutput="yes">
<formatter type="plain" usefile="false" />
<classpath refid="classpath.test" />
<test name="com.wyse.rapport.db.RapportDBUnitTest" />
<test name="${file_prompt}" />
</junit>

Is there any body to help me...

Thanks
Subbarao

Esteban A. Maringolo

2005-09-09, 6:57 pm

karanamsubbarao@gmail.com escribió:
> I know you can specify the <test name = com.xxx.xxx.XXX"> and run the
> test, but I should be able to select programmatically


> <junit printsummary="on" fork="yes" dir="${__deploy.app.root}/bin"
> failureproperty="testfailed" haltonfailure="no" showoutput="yes">
> <formatter type="plain" usefile="false" />
> <classpath refid="classpath.test" />
> <test name="com.wyse.rapport.db.RapportDBUnitTest" />
> <test name="${file_prompt}" />
> </junit>


(RapportDBUnitTest selector: #yourTestSelector) runCase
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com