Cool. I tried that and the output doesn't change at all with the unit test task.
Here is the output:
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile:
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.xml
parsing buildfile
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.xml
with URI =
file:///Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.xml
Project base dir set to:
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient
[property] Loading
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.properties
Build sequence for target(s) `compileTests' is [compileTests]
Complete build sequence is [compileTests, compileApp, ]
compileTests:
[mtasc] Compiling 2 source files.
[mtasc] /opt/bin/mtasc/mtasc -swf
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/alltests.swf
-header 300:100:31:FFFFFF -trace asunit.runner.BaseTestRunner.trace
-version 8 -cp
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/3rdParty
-cp /Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/src
-main asunit/runner/BaseTestRunner.as
com/tomsnyder/fasttmath2/tests/SwfUITestRunner.as
[mtasc] Compiling 2 source files.
[mtasc] /opt/bin/mtasc/mtasc -swf
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/antUnitTests.swf
-header 300:100:31:FFFFFF -trace asunit.runner.BaseTestRunner.trace
-version 8 -cp
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/3rdParty
-cp /Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/src
-main com/tomsnyder/fasttmath2/tests/AntTestRunner.as
asunit/runner/BaseTestRunner.as
[unittest] -
[unittest] -
[unittest] "/Applications/Macromedia Flash 8/Players/SAFlashPlayer"
/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/antUnitTests.swf
BUILD SUCCESSFUL
Total time: 2 seconds
Any suggestions on how else to debug this?
Thanks Simon,
Chris
On 6/13/06, Simon Wacker <[EMAIL PROTECTED]> wrote:
> You can turn on verbose mode with the -v (or -verbose) flag.
>
> If you use eclipse: Click on the little arrow besides the green arrow
> with the suitcase. Then click on "External Tools", select the entry for
> your build.xml file and define the custom argument in the "Arguments"
> text area in the "Main" tab. The just click "Run" and you'll get verbose
> output.
>
>
> Greetings,
> Simon
>
> Chris Allen wrote:
>
> >Thanks for the tips Simon.
> >
> >How do I go about running the target in verbose mode?
> >
> >-Chris
> >
> >On 6/13/06, Simon Wacker <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi Chris,
> >>
> >>seems as if no data is received by the unit test task. But an exception
> >>is normally thrown in such a case (at least on a Windows machine). Run
> >>the target in verbose mode to see if any information is lost (unhandled
> >>exceptions etc.).
> >>
> >>
> >>Greetings,
> >>Simon
> >>
> >>Chris Allen wrote:
> >>
> >>
> >>
> >>>On 6/12/06, erixtekila <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>The xml is just to use custom xml for swfmill inside the swf task.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>Erixtekila,
> >>>
> >>>Thanks for letting me know what that was for.
> >>>
> >>>BTW, have you or anyone else been able to get this task to work on a
> >>>Macintosh using ASUnit? I made a TestSuite that certainly will fail
> >>>when using the basic TestRunner, but it seems to pass, or at the very
> >>>least silently fail when running vie the XMLSocket version.
> >>>
> >>>Any help will be greatly appreciated. See below for the details:
> >>>
> >>>Here is the TestRunner code that I'm using:
> >>>
> >>>import asunit.textui.TestRunner;
> >>>import com.tomsnyder.fasttmath2.tests.AllTests;
> >>>import org.as2lib.test.unit.XmlSocketResultPrinter;
> >>>import asunit.runner.BaseTestRunner;
> >>>
> >>>class com.tomsnyder.fasttmath2.tests.AntTestRunner extends BaseTestRunner
> >>>{
> >>> public function AntTestRunner()
> >>> {
> >>> super(XmlSocketResultPrinter);
> >>> start(AllTests);
> >>> }
> >>>
> >>> public static function main():Void
> >>> {
> >>> var runner:AntTestRunner = new AntTestRunner();
> >>> }
> >>>}
> >>>
> >>>Here is the target from my build.xml file with the task being used:
> >>>
> >>><target name="compileTests" description="builds unit tests swf">
> >>> <mtasc mtasc="${mtasc}"
> >>> trace="asunit.runner.BaseTestRunner.trace"
> >>>version="8"
> >>>
> >>> src="${src.dir}/com/tomsnyder/fasttmath2/tests/SwfUITestRunner.as"
> >>>classpath="${3rdParty.dir}; ${src.dir}"
> >>> swf="${build.dir}/alltests.swf"
> >>> header="300:100:31:FFFFFF" main="yes" />
> >>>
> >>> <mtasc mtasc="${mtasc}"
> >>> trace="asunit.runner.BaseTestRunner.trace"
> >>>version="8"
> >>>
> >>> src="${src.dir}/com/tomsnyder/fasttmath2/tests/AntTestRunner.as"
> >>>classpath="${3rdParty.dir}; ${src.dir}"
> >>> swf="${build.dir}/antUnitTests.swf"
> >>> header="300:100:31:FFFFFF" main="yes" />
> >>>
> >>> <unittest swf="${build.dir}/antUnitTests.swf"
> >>>flashplayer="${flashplayer.exe}"/>
> >>> </target>
> >>>
> >>>
> >>>Here is the output being generated:
> >>>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build.xml
> >>>compileTests:
> >>> [mtasc] Compiling 2 source files.
> >>> [mtasc] /opt/bin/mtasc/mtasc -swf
> >>>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/alltests.swf
> >>>-header 300:100:31:FFFFFF -trace asunit.runner.BaseTestRunner.trace
> >>>-version 8 -cp
> >>>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/3rdParty
> >>>-cp
> >>>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/src
> >>>-main asunit/runner/BaseTestRunner.as
> >>>com/tomsnyder/fasttmath2/tests/SwfUITestRunner.as
> >>> [mtasc] Compiling 2 source files.
> >>> [mtasc] /opt/bin/mtasc/mtasc -swf
> >>>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/antUnitTests.swf
> >>>-header 300:100:31:FFFFFF -trace asunit.runner.BaseTestRunner.trace
> >>>-version 8 -cp
> >>>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/3rdParty
> >>>-cp
> >>>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/src
> >>>-main com/tomsnyder/fasttmath2/tests/AntTestRunner.as
> >>>asunit/runner/BaseTestRunner.as
> >>> [unittest] "/Applications/Macromedia Flash 8/Players/SAFlashPlayer"
> >>>/Users/callen/Documents/perforce_workspace/FASTT2.0/src/StudentClient/build/antUnitTests.swf
> >>> [unittest] -
> >>> [unittest] -
> >>>BUILD SUCCESSFUL
> >>>Total time: 1 second
> >>>
> >>>_______________________________________________
> >>>osflash mailing list
> >>>[email protected]
> >>>http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>--
> >>Simon Wacker
> >>www.simonwacker.com
> >>www.as2lib.org
> >>www.hq-heilbronn.de
> >>www.flik-flak.de
> >>
> >>
> >>_______________________________________________
> >>osflash mailing list
> >>[email protected]
> >>http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>
> >>
> >>
> >
> >_______________________________________________
> >osflash mailing list
> >[email protected]
> >http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
> >
> >
>
> --
> Simon Wacker
> www.simonwacker.com
> www.as2lib.org
> www.hq-heilbronn.de
> www.flik-flak.de
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org