前言
為什麼需要做測試?一個沒有經過測試或驗證的程式碼,都是💩(開玩笑)ㄈ
利用測試驅動開發,先撰寫測試在撰寫程式碼的方式,除了可以確保程式碼是可測的之外,他也能保證在測試案例範圍內是不會有錯的,也因此也能利用測試文件作為規格書使用。
術語介紹
SUT(System Under Test/Software Under Test)
待測程式
例如一個待測試的方法
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up