FlexUnit 4 is the last version of a unit testing framework used for Flex/ActionScript projects
Questions tagged [flexunit4]
51 questions
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
6
votes
1 answer
What's the best way to organise FlexUnit 4 tests in FlexBuilder 3?
I've recently started practising test driven development - thus far I've been working on a library project, so I've organised my FlexUnit tests in a separate FlexBuilder 3 project, linking against my library's swc.
Now I'm working on a web app and…

angerelle
- 116
- 4
5
votes
3 answers
How can unit tests be modular when they are dependant on other units?
I am trying to retrospectively unit test an application that is fairly complex but utilises MVC. I know retrospectively applying unit tests isn't ideal but I still believe it's possible by refactoring existing code. A majority of the time it is…

Christopher Grigg
- 2,238
- 27
- 33
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
3 answers
Best way to reset database to known state between FlexUnit4 integration tests?
Background:
I have a Flex web app that communicates with a Java back-end via BlazeDS. The Flex client is composed of a flex-client module, which holds the views and presentation models and a separate flex-service module which holds the models…

Dave
- 21,524
- 28
- 141
- 221
3
votes
2 answers
Flex Unit 4 -- Hello World
I want to use the Flex Unit 4 Suite.
I don't really have any experience with unit testing.
I downloaded the Turnkey project but I was a little overwhelmed.
I basically just want to start by creating a simple hello world unit test.
if I have a class…

JD Isaacks
- 56,088
- 93
- 276
- 422
3
votes
1 answer
Jenkins CI server setup for Adobe AIR app (With FlexUnit4 and GitHub as repo)
I have an Adobe AIR app written with Robotlegs 1.5.2.
The unit test framework used is FlexUnit4.
I already have a Jenkins CI setup for projects written with CakePHP 2.x and unit test framework of PHPUnit. My Jenkins CI server is on Ubuntu 11.10 on…

Kim Stacks
- 10,202
- 35
- 151
- 282
2
votes
4 answers
FlexUnit 4 error:adobe:TestRunnerBase
I'm getting an error with FlexUnit 4 that I am not able to find a solution for. Here is the error:
Could not resolve to a component implementation.
Here is my sample app (I am using FlashBuilder 4 Premium so I assume all necessary SWCs are already…

fumeng
- 1,771
- 5
- 22
- 61
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
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
Where can I get FlexUnit
Simple question, where do I actually download the FlexUnit binary? I've found:
https://cwiki.apache.org/confluence/display/FLEX/FlexUnit+Getting+Started
and
https://github.com/flexunit/flexunit
The links on the first go to www.flexunit.com which…

spierepf
- 2,774
- 2
- 30
- 52
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
1
vote
2 answers
How can I test a linked list object pool using FlexUnit 4?
I'm creating an object pool in AS3 that uses a stack as its base data structure (implemented with a linked list). I'm new to FlexUnit, but I'd really like to have some unit tests for my classes (as testing them in a new project would be cumbersome…
user677526
1
vote
2 answers
flexunit: Parametrized tests
I am trying to run a parametrized tests... Was trying to implement it like it explained here:
http://docs.flexunit.org/index.php?title=Parameterized_Test_Styles
Here is what my test case looking
import…

Oleg Tarasenko
- 9,324
- 18
- 73
- 102