paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Pytest-Smell: a smell detection tool for Python unit tests

Pytest-Smell:面向 Python 单元测试的坏味检测工具
ISSTA Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis2022匹配度 2/10 · 该论文提出的是传统的 Python 单元测试坏味检测静态分析工具,与用户关注的“静态分析×LLM/Agent”、机器学习系统/Agentic 程序、浮点程序分析或贝叶斯程序分析均无直接关联。虽然属于程序分析工具,但应用场景和交叉方向不匹配。引用 15 inbox
Alexandru Bodea
crossref: 2026-09-12

AI 速览

一句话:提出 Pytest-Smell 工具,自动检测 Python 单元测试中的坏味,以改善测试代码与软件质量。

论文关注单元测试代码的质量问题。正如源代码一样,单元测试也可能包含不良编程实践,即缺陷或坏味,它们会降低软件系统的可理解性与可维护性,并增加问题与 bug 出现的风险。为应对这一问题,作者提出 Pytest-Smell,一个面向 Python 单元测试的坏味检测工具,旨在自动化发现此类坏味,从而辅助开发者提升测试代码质量。摘要主要阐述动机与工具目标,未给出具体检测规则、实现技术、实验设计、精度或性能等评估结果,因此无法从摘要判断其实际效果。

问题
单元测试代码同样可能引入坏味,导致系统更难理解、维护且更易出现缺陷。
方法
提出 Pytest-Smell,一个面向 Python 单元测试、用于自动检测测试坏味的工具。
评估
摘要未报告评估方式;仅强调自动化检测单元测试坏味的重要性。
原文摘要(Abstract)

Code quality and design are key factors in building a successful software application. It is known that a good internal structure assures a good external quality. To improve code quality, several guidelines and best practices are defined. Along with these, a key contribution is brought by unit testing. Just like the source code, unit test code is subject to bad programming practices, known as defects or smells, that have a negative impact on the quality of the software system. As a consequence, the system becomes harder to understand, maintain, and more prone to issues and bugs. In this respect, methods and tools that automate the detection of the aforementioned unit test smells are of the utmost importance.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot7397,
  title = {Pytest-Smell: a smell detection tool for Python unit tests},
  author = {Alexandru Bodea},
  booktitle = {ISSTA},
  year = {2022},
  doi = {10.1145/3533767.3543290}
}