Questions tagged [asunit]

8 questions
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
1
vote
1 answer

Run AsUnit runner from Ant

How can you run AsUnit test runner from Ant? I'm on the Mac OS so I use: open -a "flash player" tests.swf How can I make this cross platform?
BefittingTheorem
  • 10,459
  • 15
  • 69
  • 96
0
votes
1 answer

FlashDevelop ASMock integration errors

I've recently been trying to use ASMock 1.0 with ASUnit4.0 (I grabbed the package with both of them together off of the ASMock website) and added both .swc components (asmock-v1.0.swc and asmock-v1.0-asunit-v4.0.swc) to the lib folder of my…
user489162
0
votes
2 answers

How to do TDD using FDT with AS3 in MAC?

I'd like to setup my environment to program doing Test Driven Development in ActionScript3. I tried using AsUnit but I don't know how to install it properly in MacOS. Thank you!
0
votes
0 answers

mxmlc - Warning: Failed to parse corrupt data - once project reaches certain size?

I have a long running project which is compiled as modules for release, but the test suite potentially runs all the tests for every module. The project is quite large - currently around 1250 tests cases (classes), and pulling in around 4000 classes…
Stray
  • 1,689
  • 1
  • 11
  • 19
0
votes
1 answer

Unit testing a library with AsUnit in Flex Builder

I've been trying to setup a working method for unit testing flex libraries using Flex Builder. I have tried setting up a standard flex lib project and using Ant to compile and run the units tests. But this means that when something does go wrong and…
BefittingTheorem
  • 10,459
  • 15
  • 69
  • 96
0
votes
0 answers

asunit document class null stage referance

While writing a unit test for my project's main class asunit keeps throwing me this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. whenever i use a stage reference. I understand why this occurs as the…
Kris Welsh
  • 334
  • 2
  • 14
0
votes
1 answer

Accessing objects and variables from swf across domains

I am trying to access a variable from a test.swf on b.com from a parent.swf on a.com. test.swf: Security.allowDomain("a.com"); var test = 0; parent.swf: var loader:Loader = new Loader(); var url:String = "http://b.com/test.swf"; loader.load(new…
ssn
  • 2,631
  • 4
  • 24
  • 28