Passionate about Golang, JavaScript, Embedded System ,and how to improve coding skills.
See more
A: Mutation Test 的前提是需求不變, 對既有的單元測試 (Unit Test) 做驗證, 才能抓到漏網之魚, 因為需求改了程式碼也要調整, 當然測試也包含在內.
任何可能導致缺陷 (Defect) 的代碼 (Code) 修改, 都可以被測試發現.
The tests are passing and the test coverage would be 100% — yay! However, as we know, code coverage is not the best indicator for test strength and thoroughness.