迭代测试驱动开发的形式化分析
A Formal Analysis of Iterated TDD
AI总结:
本文形式化分析迭代测试驱动开发,定义关键概念,证明在特定上下文中可稳定生成正确代码,否则呈混沌行为,并解释早期研究结果差异。
摘要:
本文对称为(迭代)测试驱动开发(TDD)的软件方法论进行了形式化分析。我们正式定义了规范、软件、测试、等价划分、耦合,以从TDD的角度论证软件开发的本质。我们将迭代TDD形式化,并找到了一个上下文,在该上下文中,迭代TDD能从“规范”中“可证明地生成”“可证明正确的代码”,同时在迭代代码变更方面保持稳定。我们证明,在此上下文之外,迭代TDD将表现出混沌行为,意味着不可预测的、混乱的代码变更量。我们认为,早期研究中发现的迭代TDD“无效”的结果是由于缺少此上下文,而“有效”迭代TDD的发现则是由于偶然落入该上下文或仅仅是安慰剂效应。
英文摘要:
In this paper we formally analyze the software methodology called (iterated) Test Driven Development (TDD). We formally define Specification, Software, Testing, Equivalence Partitions, Coupling, to argue about the nature of the software development in terms of TDD. We formalize Iterative TDD and find a context in which iterated TDD ``provably produce'' ``provably correct code'' from ``specifications'' while being stable in terms of iterated code churns. We demonstrate that outside this context iterated TDD will exhibit chaotic behavior, implying unpredictable messy amount of code churn. We argue that the research finding of ``ineffective'' iterated TDD found by earlier researches are due to missing this context, while the findings of ``effective'' iterated TDD is due to accidentally falling into the context or simply placebo.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。