mlsanityData to 14 Oct 2026

Agentic LMs: Hunting Down Test Smells

arXiv 2504.07277 ↗First posted 9 Apr 2025cs.SEcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Test smells reduce test suite reliability and complicate maintenance. While many methods detect test smells, few support automated removal, and most rely on static analysis or machine learning. This study evaluates models with relatively small parameter counts - Llama-3.2-3B, Gemma-2-9B, DeepSeek-R1-14B, and Phi-4-14B - for their ability to detect and refactor test smells using agent-based workflows. We assess workflows with one, two, and four agents over 150 instances of 5 common smells from real-world Java projects. Our approach generalizes to Python, Golang, and JavaScript. All models detected nearly all instances, with Phi-4-14B achieving the best refactoring accuracy (pass@5 of 75.3%). Phi-4-14B with four-agents performed within 5% of proprietary LLMs (single-agent). Multi-agent setups outperformed single-agent ones in three of five smell types, though for Assertion Roulette, one agent sufficed. We submitted pull requests with Phi-4-14B-generated code to open-source projects and six were merged.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 9 of its 16 references that are in the map. First posted on arXiv 9 Apr 2025.

Builds on

9 of 16 references.

References · 9

  1. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  2. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  3. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
  4. 2024The Prompt Report: A Systematic Survey of Prompt Engineering Techniquescited by 121
  5. 2024Premise Order Matters in Reasoning with Large Language Modelscited by 72
  6. 2024Evaluating Large Language Models in Detecting Test Smellscited by 6
  7. 2021PyNose: A Test Smell Detector For Pythoncited by 4
  8. 2021Test Smell Detection Tools: A Systematic Mapping Studycited by 3
  9. 2022Machine Learning-Based Test Smell Detectioncited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026SmellBench: Evaluating LLM Agents on Architectural Code Smell Repair
  2. 2026REFINE: A Multi-Agent LLM Approach for Evidence-Guided Code Refactoring
  3. 2026Automated structural testing of LLM-based agents: methods, framework, and case studies
  4. 2026Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild
  5. 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositories
  6. 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications
  7. 2025Agentic Program Repair from Test Failures at Scale: A Neuro-symbolic approach with static analysis and test execution feedback
  8. 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Tasks