| Issue 82: | Ant Task (Redeaux) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
|
To keep in alignment with the upcoming runner, add an ant element TEST that
will be all encompassing - is uber-omni legal?. It will accept path and
runner parameters. The path can be dotted notation to a testcase or
testsuite, _or_ the path can be a directory path. To further facilitate
customization and extensibility, param tags will be optionally available to
provide additional instructions to the runner. The observant may also see
that this would have the additional benefit of not only running tests via
ant, but also arbitrary CFCs.
Example:
<taskdef name="mxunittask" classname="org.mxunit.ant.MXUnitAntTask"
classpath="${mxunit.jar}" />
<mxunittask server="localhost" port="8500" verbose="true" outputdir="[save
response here]">
<test name="mytest">
<param name="runner" value="/mxunit/runner/HttpAntRunner.cfc" />
<param name="path" value="${component.path}\mxunit\tests\framework" />
<param name="packageName" value="mxunit.tests.framework" />
<param name="recurse" value="false" />
<param name="excludes" value="" />
</test>
<!-- Now just run an arbitrary cfc - a non test -->
<test name="runSomeCfc">
<param name="runner" value="/myapp/MyCFC.cfc" />
<param name="q" value="123" />
<param name="p" value="abc" />
<param name="method" value="POST" />
<param name="excludes" value="" />
</test>
</mxunittask>
Jan 22, 2009
nextgen
Labels:
Milestone-Release-2.0
Jun 30, 2010
older/outdated issues. archive in google docs. These are either Fixed, deprecated, or invalid moving to Jira
Status:
Fixed
|
||||||||||
Cc: -axsaheli -v.rajkumar henkemike