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

Reply via email to