How-toMulti-source

OpenClaw 开源 test audit skill:让 agent 判断哪些测试该删

评论中还有 openclaw 自己使用的 test audit 这个 skills: https://t.co/mlVOyxKBYt 大家可以看看,它的任务是告诉 agent 什么测试应该加,什么测...

Why we picked it

OpenClaw 把自家删了 40 万行测试的 skill 开源了,agent 写测试前先过四个问题,做 AI 编程的可以直接抄这个工作流。

OpenClaw 公开了自己使用的 test audit skill,任务是告诉 agent 什么测试应该加、什么测试是垃圾不该加。

Image · Viking
Body

agent 在写测试前要先回答四个问题,判断通过才动手。此前 Viking 提到 OpenClaw 删掉了约 40 万行自己的测试代码,代码覆盖率几乎没掉,原因是现在的模型爱为测试而测试,写十个 case 去判断常量里的字符串。

作者还建议给 agent 一个更狠的目标,比如删掉最没用的 20% 测试同时覆盖率波动控制在 2% 以内,只说“清理一下”它会很早就停下。

Original · Viking

评论中还有 openclaw 自己使用的 test audit 这个 skills: https://t.co/mlVOyxKBYt 大家可以看看,它的任务是告诉 agent 什么测试应该加,什么测...

评论中还有 openclaw 自己使用的 test audit 这个 skills: github.com/openclaw/openc… 大家可以看看,它的任务是告诉 agent 什么测试应该加,什么测试是垃圾不应该加。 在开始写测试的时候,agent 先回答四个问题是否必要加测试的问题,判断通过了才加。 Viking @vikingmute 和前几天的观点一样:OpenClaw 删掉了大约 40 万行自己的测试代码 代码覆盖率几乎没掉 原因是现在的模型特别爱写没用的单元测试了,为了测试而测试,写十个case 去判断常量里的字符串。 作者还说:假如只跟 agent 说 清理一下,它会很早就停了不改了 ,要给它一个更狠的目标,比如 删掉最没用的 20% 测试 同时覆盖率波动控制在 2% 以内 x.com/vikingmute/sta… 🔗 View Quoted Tweet📊 1 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include OpenClaw, test audit, 编程助手, 智能体.

Source attribution: curated from Viking (@vikingmute). Cross-source corroboration: 8 independent sources have covered this development (including Decoder, IT之家, openclaw), confirming industry-wide signal strength.