Mais conteúdo relacionado
Semelhante a FlexUnit4でテスト駆動開発 (20)
FlexUnit4でテスト駆動開発
- 2. > whoami Chiew CHUNG Twitter : @theworldinunion Email : theworldinunionアット yahoo co jp Flex – ♥ Swiz Framework, FlexUnit, Mockolate Flex, Rails, SASS/CSS/JSなどを雑談たい人、気が合います!フレンドリーです〜〜、気軽に連絡下さい!
- 3. TDDとは? Wikipediaの定義: テスト駆動開発 (test-driven development; TDD) とは、プログラム開発手法の一種で、プログラムに必要な各機能について、最初にテストを書き(これをテストファーストと言う)、そのテストが動作する必要最低限な実装をとりあえず行った後、コードを洗練させる、という短い工程を繰り返すスタイルである。 ん〜〜〜???全然ピンと来ない。 うん、定義を読んで必死に理解するよりも、実際例を見たほうが分かりやすいよ。
- 9. 「想定」をテスト 0 100 -1 1 45 99 -20 public function AddPerson( age:int ):void { if (age < 0 || age > 100) throw new Exception(e); else trace(age); } -20, -1, 0, 100 Exception を想定される 1, 45, 99 trace()を想定される Photo credit : http://www.artofthemonkey.com/
- 13. インストール方法? Flash Builder Premium の場合: インストールいらない。Frameworkにflexunitの*.swcを既に含まれている。 テスト結果はFlash Builder内表示可能。 Flash Builder Standard の場合: インストールは簡単、flexunit*.swcは自分のlibフォールダに入れるだけ。 テスト結果はブラウザー上で表示。
- 14. ご清聴 ありがとう ございました Chiew Chung @theworldinunion Mail : theworldinunionアット yahoo co jp