雖然我無玩過TDD, 亦無好深入了解, 但以我既理解應該會受限application / language
或者我舉個好簡單既 ...
3ldk 發表於 2017-3-23 02:40
師兄形容嘅係 e2e (end-to-end) test case。呢種 test case 盡量模仿 user flow,一次過 test 曬由 frontend 到 backend 到 database 所有嘢。
除咗 e2e,仲有 unit test 同 functional test。佢地嘅分別就唔詳述,但一般嚟講 unit test : function test : e2e test 嘅比例應該大約係 6 : 3 : 1。 e2e test 佔最少因為 implementation effort 大之餘仲要成日 update。