返回全部动态

Claude AI生成的Python测试质量不弱于人类测试

原标题:The Quality of Claude AI-authored Python Tests Is Not Weaker Than Human-authored Tests

arXiv cs.SE一手来源研究质量 87

AI 摘要

一项研究评估了Claude AI生成的Python测试与人类编写的测试质量,发现Claude Sonnet/Opus 4.6及更新模型生成的测试在多个评估协议下不弱于人类编写的测试。该研究使用真实工具Extractor的测试套件,并采用四种独立评估方法,包括历史回退测试、AST变异测试、覆盖引导变异测试和定性评分。结果表明AI生成的测试质量与人类相当,但研究也指出此结果仅适用于2025年11月后的模型。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

The Quality of Claude AI-authored Python Tests Is Not Weaker Than Human-authored TestsConference: ; ; PreprintCCS: Software and its engineering Software testing and debuggingCCS: Computing methodologies Machine learning Abstract. We evaluate the quality of Claude AI-written Python tests against human-written Python tests from two established open-source projects Django and Pandas. Hundreds of tests per corpus are scored under one identical protocol. Using one-sided non-inferiority bounds, we fin


发布时间:2026-08-18 12:00
抓取时间:2026-08-18 12:23
来源机构:arXiv
阅读原文arxiv.org