House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  CFUnit

Multithreaded CFUnit-Ant tasks

  << Previous Post |  RSS |  Subscribe to this Group Next >> 

Multithreaded CFUnit-Ant tasks

Ant experts would probably not find this a very big deal, but today I SkorPiun 11/20/2005 12:42 AM

11/20/2005 12:42 AM
Author: SkorPiun Short Link: http://www.houseoffusion.com/groups/cfunit/thread.cfm/threadid:712#2034 Ant experts would probably not find this a very big deal, but today I found the ant parallel command. I found this as I was about to upgrade CFUnit-Ant to multithreaded, but now I don't need too. Just wrap your CFUnit tasks in parallel tags and the tasks will run asynchronously. For example: <?xml version="1.0"?> <project name="CFUnit" default="example" basedir=".">   <taskdef name="CFUnit" classname="net.sourceforge.cfunit.ant.CFUnit"/>      <property name="domain" value="http://localhost/" />      <target name="example">     <parallel timeout="6000" threadCount="10">       <CFUnit testcase="${domain}tests/TestCase1.cfc"             verbose="true" />       <CFUnit testcase="${domain}tests/TestCase2.cfc"             verbose="true" />       <CFUnit testcase="${domain}tests/TestCase3.cfc"             verbose="true" />       <CFUnit testcase="${domain}tests/TestCase4.cfc"             verbose="true" />       <CFUnit testcase="${domain}tests/TestCase5.cfc"             verbose="true" />       <CFUnit testcase="${domain}tests/TestCase6.cfc"             verbose="true" />     </parallel>   </target> </project> This is especially good if you integrate CFUnit-Ant into CFEclipse so that they are ran automatically. -- Rob Blackburn http://www.rbdev.net
<< Previous Thread Today's Threads Next Thread >>

Search cfunit

May 19, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference