团队删除 monorepo 80 万行单测,称单测可能帮 AI 锁死 slop code
AI 导读
有团队本周从 sazabi 的 monorepo 中删除了 80 万行单元测试,理由是单测可能通过增加改动和删除难度来“锁死”slop code,同时拖慢开发周期并推高 token 与 CI 成本。评论区有人反向操作,让 Claude 补写 10 万行测试,据称抓出 18 个 bug。
正文
关注,这人直接把公司 monorepo 80 万行单测删了。
理由更离谱:单测可能在帮 AI 锁死 slop code。
更精彩的是评论区马上有人反着做,让 Claude 补了 10 万行测试,结果真抓出了 18 个 bug。
关注后续,某种意义上,单元测试和集成测试,都非常关键
We deleted 800k lines of unit tests from the @sazabi monorepo earlier this week.
Three hypotheses:
1- Unit tests "lock-in" slop code by making it hard to change or remove
2- Unit tests slow down dev cycles by making your agent do more work locally and by increasing CI times
3- Unit tests waste money by making your agent generate more tokens and by adding useless CI runs
Will report back soon with the results!在 X 查看被引用的帖子