前回の記事で少し紹介したas3flexunitlibについてもう少し詳しく説明します。 Google Codeのプロジェクトページはこちら。 http://code.google.com/p/as3flexunitlib/ as3flexunitlibはAdobe Labsによって提供されている、 as3用のUnitTestのためのライブラリです。 as3corelibなどの他のライブラリでも、テストのためにflexunitが使用されています。 TestCase、TestSuiteを作成し、TestRunnerを埋め込んだmxmlによる GUIを起動してテストを走らせ、結果を見ることが出来ます。 成功例 失敗例 まずはmxmlを書いてGUIを用意します。 TestRunnerの準備 <?xml version="1.0" encoding="utf-8"?> <mx:Application
![as3flexunitlibによるUnitTest - Codin’ In The Free World](https://cdn-ak-scissors.b.st-hatena.com/image/square/d5b022e861c9f0ff025e96cb81d0fec9e43ce10c/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fl%2Flyokato%2F20080514%2F20080514153211.png)