javascript and unit tests
With dynamic typed languages, things can go wrong after a few refactorings due to lack of extra information that is available with static typed languages.
Unit/integration tests are expected to cover this front for these languages. It shouldn't be coincidence that the rise of dynamic languages are in parallel with the rise of test driven development/continuous integration (agile/lean)
Two approaches come to mind.
Selenium like tests ( scenario based kinda integration tests)
JsUnit like tests (kinda unit tests)
Traditionally JS testing/debugging was left to alert statements and lots of retries, however i find myself using firebug regularly to inspect and analyze my javascript codes.
Here you can watch the creator of it going through most useful features of it.
1 comments:
自慰套,真愛密碼,
自慰套,自慰器,充氣娃娃,
性感丁字褲,AV,按摩棒,電動按摩棒,情趣按摩棒,
角色扮演,吊帶襪,丁字褲,飛機杯,
按摩棒,變頻跳蛋,跳蛋,無線跳蛋,G點,
潤滑液,SM,情趣內衣,內衣,性感內衣,情趣用品,情趣,
Post a Comment