FlexUnit is a unit testing framework for Flex and ActionScript applications and libraries
Questions tagged [flexunit]
81 questions
2
votes
2 answers
How can I unit test Flex applications?
Flex is a client-side language and based on events. How can such events be mocked to allow unit testing?

Joseph
- 806
- 5
- 17
- 34
2
votes
2 answers
FlexUnit4 async test - asyncHandler's usage isn't clear
There is the doc page about FlexUnit4's async approach: http://docs.flexunit.org/index.php?title=Writing_an_AsyncTest
Here is the concept that's confusing for me:
// timer is a Timer instance set to tick once with a delay of…

itarato
- 795
- 1
- 8
- 24
2
votes
2 answers
"Unable to resolve resource bundle" error when trying to run FlexUnit4 tests with IntelliJ IDEA 9.0.2
I am having a trouble to get IntelliJ IDEA 9.0.2 to run FlexUnit4 tests. The tests won't be performed because of the following error:
Error: Unable to resolve resource bundle ""
So I checked the build.xml whether the path-elements are…

Juls
- 21
- 1
- 3
2
votes
1 answer
Flex Unit testing of library and mxml using FlexUnit
I have some software classes(library) to run commands on any mxml file.
These classes(library) are wrapped in a SWC file. This SWC file is referenced by any sample mxml application (by adding as SWC file).
My problem is that I want to test these…

user344722
- 21
- 2
2
votes
1 answer
FlexUnit Build Failed
I have problem when I try to run unit test when I embed an Image
[Embed(source="assets/Pen.png")]
[Bindable]
private var PenImageClass:Class;
private var penCursor:Bitmap= (new PenImageClass());
the error message is :
unable…

Hasan Houji
- 75
- 4
2
votes
4 answers
Best Practices for how to include unit tests in a library
I'm working on a general code library for ActionScript 3.0 called as3lib which includes several extensions to the core API and some useful functions. I've written several unit tests (using FlexUnit) to make sure everything is working correctly.
What…

Mims H. Wright
- 3,049
- 1
- 25
- 30
2
votes
2 answers
"Permission denied" error when running Ant build on Mac OS X
I'm trying to run FlexUnit tests from Ant. Everything works fine on Windows but on Mac OS X, I get this error:
BUILD FAILED
/Users/ohassan/Projects/mongo/build.xml:347: java.io.IOException: Cannot run program "/Applications/Adobe Flash Builder…

Ohas
- 1,887
- 4
- 21
- 29
2
votes
1 answer
flashbuilder cannot detect class due to same class name in different package
I have a class with name com.me.Async,when I start async unit test,unfortunately flexunit's library has same class org.flexunit.async.Async ,so flashbuild show error -1120: Access of undefined property org. .
how to solve this type of issue ? thanks…

Frei Zhang
- 417
- 6
- 12
2
votes
0 answers
Possible Mocking Framework for Unit Testing a SingleCore PureMVC project
I have an old and large PureMVC Singlecore project that I am joining.
I'm trying to help my team create unit tests for what we have and to teach them how to write unit tests as we go forward.
I'm encountering a bunch of mocking problems with vague…

Avik
- 723
- 6
- 16
2
votes
2 answers
How to make code coverage from FlexUnit work with Sonar?
Situation
I'm trying to get Sonar display the code coverage reports generated by FlexUnit from a Maven build job using Flex-Mojos but I'm not having any luck - all I ever get is a frustrating "-".
Build output
The result is that the dashboard…
user1346245
2
votes
1 answer
flexunit on jenkins server --- ant unable to build without error
I have already installed vncserver, flex sdk 4.6 and xvnc plugin in my jenkins.
Not sure what else i need to do.
This is my last build error message from jenkins
Building in workspace…

Kim Stacks
- 10,202
- 35
- 151
- 282
2
votes
2 answers
How can I load a local resource synchronously in Flex 3?
I want to store some test data for a FlexUnit test in small XML files in my Flex project, and access them trivially for the flex test. How can I load these bits of data synchronously? HTTPService is the way I'd be loading them _a_synchronously,…

Chris R
- 17,546
- 23
- 105
- 172
1
vote
3 answers
Configure Eclipse to run my FlexUnit tests automatically
I'd like to set up my projects in Eclipse to run FlexUnit tests everytime I save my work.
I found an example with JUnit here : http://misko.hevery.com/2009/05/07/configure-your-ide-to-run-your-tests-automatically/
How would you do it? Is it possible…

Florian F
- 8,822
- 4
- 37
- 50
1
vote
1 answer
How can I mock an AsyncResponder and the resultant handler functions on a mocked object using FlexUnit 4 and mockolate
I am attempting to write some unit tests for a class I am writing in Flex 4.5.1 using FlexUnit 4 and Mockolate for my testing and mocking framework respectively. I am using as3-signals for my custom events.
The functionality that I am writing and…

Ryan Taylor
- 8,740
- 15
- 65
- 98
1
vote
2 answers
Setting Event.target for using events in unit testing
I want to override flash.display.Loader and to dispatch my own Event with a my own target.content
How can i override Event.target?
"Property is read only"
Or use some other way to unit test the loading sequence
tnx
Hed

Hed
- 45
- 5