FlexUnit is a unit testing framework for Flex and ActionScript applications and libraries
Questions tagged [flexunit]
81 questions
8
votes
3 answers
JUnit Eclipse plugin source-code?
I'm looking into writing an Eclipse plugin for FlexUnit and was wondering where I could get the sources for the JUnit Eclipse plugin. I checked the JUnit sources at sourceforge but couldn't spot any code that looked like the plugin code.
Any idea…

Christophe Herreman
- 15,895
- 9
- 58
- 86
7
votes
3 answers
AsUnit verses FlexUnit – which is "better"?
I'm learning ActionScript/Flex at the moment, and it's come time for me to start unit testing. My reading shows that there are two main frameworks out there: FlexUnit and AsUnit.
Is there any reason to learn one over the other? Is one, in some way,…

David Wolever
- 148,955
- 89
- 346
- 502
7
votes
1 answer
Check if port is open in ANT
Is it possible to check whether a port is open using ANT tasks?
I need to execute flexunit task, but before I start this task I need to check if another flexunit task is not running and blocking the desired port.
Thank you for any suggestions,
Rafal

rafalry
- 2,620
- 6
- 24
- 39
4
votes
1 answer
Flash Builder 4.5 & FlexUnit 4.1
We have a large, multi-module product we are writing in Flex 4.1 running on top of a Java-based middle-tier.
Coming from a Java background, I want to have support in our Flex environment for writing and running unit tests.
I've updated Flash Builder…

SteveD
- 5,396
- 24
- 33
4
votes
3 answers
Why is there no assertError() function in FlexUnit?
It seems that most XUnit testing frameworks provide assertions for the times when you want to assert that a given operation will thrown an exception (or an Error in AS3 parlance.) Is there some "standard" way of doing this that I am overlooking,…

lorennorman
- 146
- 1
- 7
3
votes
1 answer
writing dynamic unit tests (flexunit) is confusing. how do i make this more modular?
i've been a long time lurker here getting help and now i can't find an answer for my current problem.
back info
i am writing some unit tests (yay!). i have 40 objects that implement an interface. the one function in that interface accepts two…

ktu
- 41
- 3
3
votes
1 answer
FlexUnit: Spark component test issue (UIImpersonator)
FlexUnit 4.1
FlashBuilder 4.5.1
BACKGROUND
I'm trying to test a custom Flex 4 skinnable component, using the FlexUnit UIImpersonator class. If I run my tests from a FlashBuilder Spark only project everything works fine. If I try to test from a…

lndgrn
- 31
- 3
3
votes
2 answers
flexunit of handle customer event and Async.asyncHandler()
Any one know how does Async.asyncHandler() work and if Async.processOnEvent() can only used in [Before] method.(Any one know some helpful document besides http://docs.flexunit.org/).
I define a MXML component named HelloCompo(extends Vbox), and the…

jason
- 1,621
- 6
- 21
- 39
3
votes
2 answers
Flex, Flexunit: How to test that an event is dispatched twice?
I'm testing some event dispatch code in a Flex app, using FlexUnit's addAsync method for testing that events are dispatched. Great so far, I can ensure that at least one event was fired. However, I want to be a bit more detailed; I want to ensure…

Chris R
- 17,546
- 23
- 105
- 172
2
votes
2 answers
FlexUnit ANT task is hanging
I'm using the ANT task to run FlexUnit on a build server. When I run the Flex Unit Tests from the Flash Builder (4) it works fine. But when running from ANT it opens the default player (FireFox in my case), runs the FU successfully but never returns…

user774868
- 41
- 4
2
votes
1 answer
flexunit addAsync chaining
For some reason, addAsync chaining in a flexunit test as described in this article utterly fails to work when I try to do it.
public function testWhatever():void {
var cont:EventDispatcher = new EventDispatcher();
…

Tmdean
- 9,108
- 43
- 51
2
votes
9 answers
flexunit with pure ActionScript project in Flex Builder 3
If you create a pure ActionScript project in Flex Builder 3 and want to do unit testing using flexunit, what is the best option?
The built-in Flex builder will refuse to build the mxml file containing the TestRunnerBase component as it is a pure…

Tmdean
- 9,108
- 43
- 51
2
votes
1 answer
Performance testing using FlexUnit
FlexUnit is quite an impressive framework for testing and with the new integration in Flash Builder 4 it's a no brainer to use it. However, I'm not sure why it's necessarily exclusive to just unit testing. In my opinion, I think the tools are great…

Marcus Stade
- 4,724
- 3
- 33
- 54
2
votes
2 answers
Build and run FlexUnit from the command line
I am building an app using ActionScript3 with Flash Builder 4 as my IDE.
The IDE supports a unit testing framework called "FlexUnit".
I can build and run tests within the IDE, no problem.
After much pain and suffering I figured out how to build…

Doug Banks
- 21
- 2
2
votes
2 answers
How to use SequenceRunner with FlexUnit 4
In the FlexUnit wiki I've read about the very interesting SequenceRunner that was contributed by the Fluint folks. Now I am trying to run a test that is very similar to the example, however when executing the run() Method of the SequenceRunner…

Yaba
- 5,979
- 8
- 38
- 44