테스트 코드 40만 줄을 지웠는데 커버리지는 거의 그대로였다
오픈소스 에이전트 OpenClaw가 자기 테스트 코드 약 40만 줄을 지웠는데 코드 커버리지는 크게 변하지 않았다. 피터 스타인버거는 "요즘 모델은 사소한 변경마다 테스트를 쓰는 걸 좋아한다, 쓸모가 없어도"라며 정리에 쓴 스킬을 공유했다. 에이전트가 코드를 쓰는 속도만큼 테스트도 불어나는데, 그 대부분이 아무것도 지키지 않았다는 얘기다.
댓글 반응 3개
- @Yoonseultwt
Deleting 400k lines without moving coverage is a pretty clean reminder that tested is not the same as protected. - @abodera
Brilliant. I was just looking for something like this after Astra carpet-bombed my project with redundant tests.. - @r_alx_z
tip: run it one agent at a time off saved notes. fanning out a dozen agents at once burned way more usage than the actual cleanup