Questions tagged [flexunit]

FlexUnit is a unit testing framework for Flex and ActionScript applications and libraries

81 questions
1
vote
1 answer

Wait for another ANT build/task to finish

I would like to make ANT process wait for another build or task to finish. The situation is: I execute a few ANT builds simultaneously. In these builds there are tasks to test the apps. Unfortunately, only one flexunit task can be run at the same…
rafalry
  • 2,620
  • 6
  • 24
  • 39
1
vote
3 answers

instantiating view won't work

Hey guys! We used to write our UnitTests with FlexUnit and we were just testing our model. Now we want to test the view too. Before i run my tests i create an instance of my view and my model to test the stuff. When i try to access the view i get a…
Sims
  • 23
  • 2
1
vote
1 answer

How to run Flex unit tests from the command line on Linux?

I am setting up a FlexBuilder build under Hudson/Jenkins on a Linux system. I want to execute our unit tests, but do it without using the standard GUI-based test runner. What are my options?
1
vote
1 answer

Can't reach php file hosted on MAMP in Flexunit tests in IntelliJ

I am running a host in MAMP, reachable via http://localhost:8888 and https://myapp.co.uk:8890 My problem is that my flexunit tests are unable to reach a php script running on that host. At the root is crossdomain.xml file:
Stray
  • 1,689
  • 1
  • 11
  • 19
1
vote
1 answer

How to set up Charles proxy for standalone Flash player during FlexUnit integration tests?

I'd like to record the AMF traffic that happens during some of my Flex application unit tests. I am using Maven/flexmojos to compile the unit tests. I've installed Charles proxy and can get it to work from Firefox, but how can I get it to work…
Dave
  • 21,524
  • 28
  • 141
  • 221
1
vote
1 answer

Run a single test in Flash Builder?

I have been using Flash Builder to build my flex software and I am a TDD guy. I find it irritating that I have to run ALL my tests in order to run any tests. It causes friction in my TDD workflow. I really want to write a test, and run that test…
Brian Genisio
  • 47,787
  • 16
  • 124
  • 167
1
vote
4 answers

Call private method in Flex, Actionscript

I need it in FlexUnit to test private methods. Is there any possibility to do this via reflection by using describeType or maybe flexUnit has some build in facility? I dislike artificial limitation that i cannot test private functions, it greatly…
core07
  • 11
  • 2
1
vote
3 answers

Setting up functional Tests in Flex

I'm setting up a functional test suite for an application that loads an external configuration file. Right now, I'm using flexunit's addAsync function to load it and then again to test if the contents point to services that exist and can be…
Dan Monego
  • 9,637
  • 6
  • 37
  • 72
1
vote
1 answer

Run AIR Debug Launcher (ADL) without a GUI for continuous build

Is it possible to run the ADL without a GUI so that I can run FlexUnit tests during a nightly build? Right now, when I execute our test runner on our server (Ubuntu 9.04) it fails with the output: "Gtk-WARNING **: cannot open display:". Many thanks…
Darren Jensen
  • 735
  • 2
  • 7
  • 13
1
vote
1 answer

FlexUnit 4 and Cairngorm commands

Does anyone know if it is possible to test remote procedure calls in Cairngorm Commands with FlexUnit 4. I have an old app full of them and before I introduce FlexUnit into the mix would like to hear if anyone has been successful with this. Many…
Chin
  • 12,582
  • 38
  • 102
  • 152
1
vote
1 answer

How can I test for an event sequence in FlexUnit 4?

I have a component that, on creation, dispatches two events to populate data fields. The events should remain separate because they're used elsewhere for distinct actions. I want to write an asynchronous flexunit test to confirm that these events…
Chris R
  • 17,546
  • 23
  • 105
  • 172
1
vote
0 answers

Flex Unit - testing a library wrapping remote objects

I'm wrapping RemoteObject inside a class for easier managing of retries, timeouts, failures and such non standard scenarios. So when wrapping a RemoteObject inside another class, how would I go about unit testing this? Here is an example of how to…
Markus Johnsson
  • 3,949
  • 23
  • 30
1
vote
3 answers

FlexUnit4: [Test(expect="Error")] doesn't catch errors?

The following code produces a failed test, not a passing test (as I would expect): [Test(expects="Error")] public function someTest():void { throw Error("this test doesn't pass"); }
David Wolever
  • 148,955
  • 89
  • 346
  • 502
1
vote
2 answers

Using travis-ci.org with a pure as3 project

Does anyone know if it is possible to use travis-ci.org for a pure-as3 project (using FlexUnit) ? Thanks.
yvan
  • 229
  • 2
  • 9
1
vote
0 answers

FlexUnit test are inconsistent

Lately, my FlexUnit tests have become inconsistent. A specific test fails or passes in run mode randomly. If i run it in debug mode (without any breakpoints), it always passes. Any idea why this might be happening?
summerbulb
  • 5,709
  • 8
  • 37
  • 83