I am folloing this post: http://forums.adobe.com/thread/633277?decorator=print&displayFullThread=true
and have the same need. I would like to have ant pull up a browser and run the unit tests.
I am running
-flex 3.5
-flexunit: 4.1.0-RC1.27
<target name="run-flex-unit">
<flexunit
player="flash"
workingDir=${dist.dir}
toDir="${dist.dir}/reports"
haltonfailure="false"
verbose="true"
localTrusted="true"
swf="https://localhost:port/path/FlexUnitApplication.swf"
command="C:\Program Files\Mozilla Firefox\firefox.exe">
</flexunit>
</target>
When I run flexunit in ant during the "Validating task attributes..." phase it I get the following error:
"The provided 'swf' property value [c:\${PROJECT.DIR}\http:\localhost:port\path\FlexUnitApplication.swf] could not be found.
Based on the write up here: http://docs.flexunit.org/index.php?title=Ant_Task#Setup_your_environment I think I have things set up correctly, but flexunit still doesn't seem to like the swf url vs a file location. This thread seemed to suggest it was fixed in flexunit 4.1?
http://forums.adobe.com/thread/633277?decorator=print&displayFullThread=true
Any insight on this?