I can highly recommend FlexUnit. On the Flexmojos Wiki there is a
section which could help you getting started.
(https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests )
Am 28.02.2011 14:22, schrieb bryan hunt:
Hi there,
This is also my first real foray into the world of (Flex)unit testing.
I've also got an awful lot of asynchronous behaviour which I need to
test in my application.
It was recommended to me by a friend that I use asunit. He's very
experienced and swears by it.
However:
* The version which is in Maven repositories (20071011) does not include
support for asynchronous testing.
* It uses some crappy build system called sprouts, written in Ruby. I'll
do (almost) anything for love, but seriously I just won't do Ruby!
So:
* I downloaded the sources and created a little Maven project to compile
them within.
* I named the project group com.senti and artifactId asunit
Compiled:
* Successfully (after some tweaking)
Ran:
My Maven build with this as a test dependency
Received the following error:
[ERROR] Failed to execute goal
org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:test-compile
(default-test-compile) on project configuration: Not found any
compatible unit test framework: [senti.f:css,
com.adobe.flex.framework:flex-framework, com.adobe.flex.framework:flex,
com.adobe.flex.framework:framework, com.adobe.flex.framework:rpc,
com.adobe.flex.framework:utilities,
com.adobe.flex.framework:playerglobal, flexlib:flexlib,
com.adobe:as3corelib, uk.co.ziazoo:dawn-complete, uk.co.ziazoo:bus,
uk.co.ziazoo:injector, uk.co.ziazoo:commands, flexspy:flexspy,
senti.f:mxml, senti.f:base, senti.f.comet:cometclient, senti.f:dawn,
senti.f:mock, senti.f:asunit, com.adobe.flex.framework:air-framework,
com.adobe.flex.framework:airframework,
com.adobe.flex.framework:airglobal,
com.adobe.flex.framework:applicationupdater,
com.adobe.flex.framework:applicationupdater_ui,
com.adobe.flex.framework:servicemonitor]
Any suggestions on how I can get it to use this self compiled version?
Or
Any recommendations of another test framework that would be a better
choice for this mixed (Air/Flex) project?
Best Regards,
Bryan Hunt
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/