FlexUnit is a unit testing framework for Flex and ActionScript applications and libraries
Questions tagged [flexunit]
81 questions
1
vote
1 answer
IntelliJ with flexunit4
I have a maven project where I am using flexmojos and flexunit and the tests execute fine when building through maven.
However when I try to execute a single test using IntelliJ (right click the on test - run), it creates the _flexunit.swf file and…

user562427
- 79
- 5
1
vote
3 answers
UIImpersonator.addChild() doesn't dispatch the right events
I am running FlexUnit tests through Ant. The test test1 fails with the message "Timeout Occurred before expected event" but test2 passes. The only difference between the two tests is that one uses UIImpersonator.addChild() whereas the other uses…

Ohas
- 1,887
- 4
- 21
- 29
1
vote
3 answers
Running FlexUnit4 tests in Hudson with ant
I'm just starting to try figure out how to go about continuous integration and test driven development, specifically in Flex 4.
I'd like to run FlexUnit4 tests from an ant script initiated in Hudson. I can get hudson to compile my app but how do I…

timoxley
- 5,156
- 3
- 36
- 40
1
vote
3 answers
flexUnit pure AS3 IntelliJ
Is it possible to have FlexUnit 4.1 in IntelliJ with project set up as Pure AS3 which meens no Flex Runner.
What I get is an error
Error #1065: Variable mx.core::FlexVersion is not defined.
ReferenceError: Error #1065: Variable mx.core::FlexVersion…

ThanksBro
- 911
- 1
- 7
- 20
1
vote
1 answer
UIComponent in a test case is null
I have this App.mxml:

Fabricio
- 7,705
- 9
- 52
- 87
1
vote
0 answers
Mocking FileReference.data with mockolate?
I'm trying to mock FileReference in a flex project I'm working on.
Stubbing out some properties, such as name and size works fine, but data just refuses to work.
Here is code that illustrates the problem:
[Test]
public function…

luddet
- 1,235
- 1
- 11
- 11
1
vote
1 answer
FlexUnit Execution Time
Is there a way to know how long one test took in FlexUnit? Is there a way to know how long all tests took?

Lieven Cardoen
- 25,140
- 52
- 153
- 244
0
votes
1 answer
FlexUnit: Can I unit test File Upload?
Can I use FlexUnit to unit test a File Upload and delete? Are those actions good examples of unit testing?
I'm a little new to unit testing and trying to figure out what parts of my UI are suitable for unit tests.
Thanks for any helpful tips.

fumeng
- 1,771
- 5
- 22
- 61
0
votes
1 answer
Flex - import AbstractMatcherTestCase could not be found
I am trying to use Flex Unit in FlashBuilder 4.5.1 and I am getting the warning " import AbstractMatcherTestCase could not be found". Can anyone let me know what I'm missing? I have
hamcrest-as3-flex-1.1.3.swc as one of my referenced libraries for…

femibyte
- 3,317
- 7
- 34
- 59
0
votes
1 answer
Running FlexUnit unable to get console output for trace
I've set up FlexUnit in my app, I want to debug a test using trace, but im not sure how to get flexunit to traceto the flashlog file. Here's part of my test task in ant, I thought the 'localtrusted' property would help, but it doesnt seem to. In…

serenskye
- 3,467
- 5
- 35
- 51
0
votes
1 answer
SequenceWaiter doesn't recognize my event
I'm using this AsyncHelper. I would like to create basic test case where I would like to dispatch event from the test method (by Parsley MessageDispatcher), catch this event in any other method and dispatch it back (by flex EventDispatcher).
This is…

emte
- 647
- 1
- 8
- 25
0
votes
1 answer
Does Flash Builder 4 Standard come bundled with FlexUnit?
Can anyone confirm that Flash Builder 4 STANDARD comes bundled with FlexUnit 4 just like Flash Builder 4 Premium trial does? My company is interested in buying a few copies just for unit testing an existing code base. Don't want to spend the extra…

BrazenTongue
- 179
- 1
- 9
0
votes
2 answers
Ability to create new File Templates in Flash Builder 4
I have a class interface that I have written in a Flex project using ActionScript 3 . I write FlexUnit test cases around each implementation of that interface. To help the process of creating new ones, I thought it would nice to create a FlexUnit…

ljthomas
- 3
- 2
0
votes
1 answer
How do you get FlexUnit output in JUnit format?
I am setting up FlexUnit to run from the command line and want to capture the results in JUnit format, so that I can pull them into Hudson.
What are my options?

Jordan Dea-Mattson
- 5,791
- 5
- 38
- 53
0
votes
1 answer
Get event object from SequenceWaiter
When I add SequenceWaiter step into the SequenceRunner, how can I get event object which was passed into the event? There is the code from my test function:
var sequence: SequenceRunner = new SequenceRunner(this);
sequence.addStep(new…

Andrey M.
- 3,688
- 3
- 33
- 36