Wrote Async test utility in unit-test for as3-signals.

Example:

Async.proceedOnEvent(this, new SignalAsync(instance.someSignal), SignalAsyncEvent.CALLED);
instance.doSomeThingShouldDispatchSomeSignal();

Now we have FlexUnit1 and FlexUnit4 support built in Flash Builder beta 2:

  • Create a test suite class
  • Create a test case class
  • Create a test case class of an exist class and choose which methods to test.
  • Right click a test case class and run it.
  • Right click a test suite class and run it.
  • Choose any set of test suites and test cases (test methods) to run.
  • See test results in FlexUnit Results View
  • To see more detail Click Here.

They are good for unit test, but not for TDD (write test before code).
I wish to see some more:

  • Set the source folder for real code and tests folder for test classes.
  • Create a test case class in the tests folder, and choose if create the class to be tested in the source folder.
  • Create and update test suite classes automatically in every package in the tests folder.

Get the Flash Player to see this player.
尝试使用TDD的小例子(视频)。
Download (Right-click and “save as”)下载(右键另存为)

共享出来,也方便自己备份/更新

Get the Flash Player to see this player.
Robotlegs 终于结束RC发布了V1.0,正巧昨晚录了一个简单的视频教程:
在线 | 下载(右键另存为)

- – - – - – - – - –

A simple video tutorial “Get Time With Robotlegs” (In Chinese):
Watch Online | Download (Right-click and “save as”)

Pages: 1 2 3 4 5 6 7 8 ...51 52 53 Next