TDD
      F2E
Unit   Test


http://zh.wikipedia.org/wiki/
•
•
•
•
•
•
“     25       50
    ” —— @KentBeck
TDD (Test Driven Development)




“


                ” —— @RonJeffries
TLD (Test Later Development)
TFD (Test First Development)
Why TDD


•
•
•
JavaScript
                QUnit                                                           Jasmine          DOH
                                                     YUITest
       JSUnit                                                                         JSSpec      JSpec
                                               JSUnity
                                                                          RhinoUnit            Evidence
            JSUnitTest
                                                                                 Screw.Unit
                                                                      J3Unit
      Crosscheck                                                                               FireUnit

http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#JavaScript
TDD

•
•
•
•
jsTestDriver

                                                   •      Java

                                                   •
                                                   •
                                                   •      xUnit API

                                                   •        JS

http://code.google.com/p/js-test-driver/
Yeti (YUI easy testing interface)

                                                                                          • NodeJS
                                                                                          •
                                                                                          •
                                                                                          • YUITest
                                                                                          •       HTML

http://www.yuiblog.com/blog/2010/08/25/introducing-yeti-the-yui-easy-testing-interface/
Yeti

• YUI
• HTML

•   windows

•
@Reid (Reid Bucke)’s plan


   •      socket.io

   •      Selenium 2.0      WebDriver REST API
•
•   ATT   Auto Task Tool)
• jsxml   XML   javascript


•
•
•
•
Thank you


• @colorhook
• colorhook@gmail.com
• http://colorhook.com/blog

【前端测试】高效的前端Tdd测试