事实上,您是否曾将旧单元测试添加到遗留代码中?代码有多复杂,存根和模拟一切有多难?最终结果值得吗?
unit-testing legacy-code
legacy-code ×1
unit-testing ×1