计算机科学 > 软件工程
[提交于 2026年3月20日]
标题:Software Entropy: A Statistical Mechanics Framework for Software Testing
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要:The notion of software entropy is often invoked to describe the tendency of software systems to become increasingly disordered as they evolve, yet existing approaches to quantify it are largely heuristic. In this work we introduce a formal definition of software entropy grounded in statistical mechanics, interpreting test suites as executable specifications, that is, as macroscopic constraints on the space of possible program implementations. Within this framework, mutation analysis provides a practical approximation of the locally accessible microstate space, allowing entropy-related quantities to be estimated empirically. We propose metrics that quantify how test suites restrict program space, including an information-weighted measure of the distribution of constraint power across tests. Applying these ideas to a real-world project, we show how test suites reduce software entropy and how information weights reveal structural differences in the contribution of individual tests that traditional metrics such as code coverage fail to capture.
提交历史
来自:Juan Cabral[v1] 2026年3月20日 星期五 21:55:45 UTC