---
格式版本: 2
标题: "Code Health in LLM-Based Test Generation: Effectiveness and Token Efficiency"
原文链接: "https://arxiv.org/abs/2608.18645"
发布日期: "2026-08-19"
发布时间校准状态: "found"
发布时间需复核: "否"
发布时间来源: "rule:local:strict_original_body"
发布时间证据: "**\\[v1\\]** Wed, 19 Aug 2026 07:47:43 UTC (352 KB)"
发布时间校准原因: "规则确认唯一严格发布时间，来源 local:strict_original_body"
发布时间校准置信度: "high"
发布时间候选数量: 18
发布时间严格候选数量: 6
发布时间原页读取状态: "source template page reused from URL open"
发布时间未找到原因: ""
发布时间校准时间: "2026-08-20T16:03:08+08:00"
发布时间仲裁状态: "skipped"
发布时间仲裁尝试次数: 0
发布时间仲裁耗时毫秒: 0
发现时间: "2026-08-20T15:56:53+08:00"
入库时间: "2026-08-20T08:03:08.836Z"
来源平台: "arXiv 学术论文搜索"
搜索渠道: "source_template"
搜索词: "https://arxiv.org/search/?query=AI&searchtype=all"
匹配关键词:
  - "AI"
相关厂家:
  []
相关专家:
  []
内容类型: "网页"
抓取工具: "Free Fetch + Defuddle"
清洗工具: "Defuddle Markdown + Defuddle/Readability 正文提取"
原始附件:
  []
AI优质: "否"
AI打分: 20
AI分档: "非优质"
AI质检状态: "不通过"
AI打分理由: "该arXiv论文主题为LLM测试生成的代码健康与token效率，属软件工程领域，与超节点/AI Rack/机柜级AI基础设施完全无关。仅搜索词含AI，正文无任何相关技术或商业信息。"
AI质检模型: "ali-deepseek-v4-flash"
AI质检时间: "2026-08-20T16:10:25+08:00"
AI主题相关性: 0
AI来源权威性: 10
AI新颖性: 0
AI技术细节: 0
AI商业部署信号: 0
AI完整性: 10
AI摘要: "该研究考察了LLM生成单元测试在不同代码可维护性（CodeHealth）水平下的效果，覆盖Python、Java和C++，使用覆盖率和变异分数评估。结果显示代码健康度与测试有效性呈弱正相关，与输入token数量负相关。"
AI摘要模型: "ali-deepseek-v4-flash"
AI摘要时间: "2026-09-07T03:18:25.170Z"
采集批次: "2026年8月20日14点19分32秒"
采集批次ID: "20260820-141932-079"
去重键: "https://arxiv.org/abs/2608.18645"
---

## Computer Science > Software Engineering

## Title:Code Health in LLM-Based Test Generation: Effectiveness and Token Efficiency

Authors:[Freya Wirdemann](https://arxiv.org/search/cs?searchtype=author&query=Wirdemann,+F), [Markus Borg](https://arxiv.org/search/cs?searchtype=author&query=Borg,+M), [Nadim Hagatulah](https://arxiv.org/search/cs?searchtype=author&query=Hagatulah,+N), [Adam Tornhill](https://arxiv.org/search/cs?searchtype=author&query=Tornhill,+A)

[View PDF](https://arxiv.org/pdf/2608.18645) [HTML (experimental)](https://arxiv.org/html/2608.18645v1)

> Abstract:Coding agents powered by Large Language Models (LLMs) are now prominent in software engineering. Previous work has shown that AI tools perform better on high-quality source code that is easy to maintain. In this study, we investigate how the effectiveness of LLM-generated unit tests varies across maintainability levels measured by CodeScene's CodeHealth (CH). We assess test effectiveness using traditional coverage metrics and mutation score across Python, Java, and C++. Moreover, we study how code with different levels of CH translates into input tokens using common industrial tokenizers. Our results suggest that CH provides a weak but consistent signal of LLM-generated test effectiveness and is negatively correlated with input-token count. These findings provide further evidence for a relationship between maintainability and LLM-based software development.

| Comments: |  |
| --- | --- |
| Subjects: | Software Engineering (cs.SE) |
| Cite as: | [arXiv:2608.18645](https://arxiv.org/abs/2608.18645) \[cs.SE\] |
|  | (or [arXiv:2608.18645v1](https://arxiv.org/abs/2608.18645v1) \[cs.SE\] for this version) |
|  | [https://doi.org/10.48550/arXiv.2608.18645](https://doi.org/10.48550/arXiv.2608.18645) |

## Submission history

From: Markus Borg \[[view email](https://arxiv.org/show-email/5e1d9fa1/2608.18645)\]  
**\[v1\]** Wed, 19 Aug 2026 07:47:43 UTC (352 KB)

[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2608.18645) | Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))
