arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.13258cs.SE
收藏

切片在测试驱动开发中的作用

The role of slicing in test-driven development

Oscar Dieste, Ayse Tosun, Sira Vegas, Adrian Santos, Fernando Uyaguari, Jarno Kyykka, Natalia Juristo

AI总结:

本文提出TDD的理论框架,将每个TDD周期视为用户故事的垂直切片,通过契约捕获切片并作为代码预言机的规范,并用工业受控实验验证了TDD、契约与切片间的联系。

摘要:

测试驱动开发(TDD)是一种广泛使用的敏捷实践。然而,关于TDD的基础原理,即TDD的工作方式,我们知之甚少。在本文中,我们提出了一个TDD的理论框架,具有以下特征:1)每个TDD周期代表一个用户故事(可能也很小)的垂直切片;2)垂直切片通过隐含在开发者头脑中的契约来捕获;3)在TDD周期中创建的代码是基于切片的代码预言机规范,使用契约作为切片的前/后置条件。我们通过一项在工业界进行的受控实验,检验了TDD、契约和切片之间的联系。

英文摘要:

Test-driven development (TDD) is a widely used agile practice. However, very little is known with certainty about TDD's underlying foundations, i.e., the way TDD works. In this paper, we propose a theoretical framework for TDD, with the following characteristics: 1) Each TDD cycle represents a vertical slice of a (probably also small) user story, 2) vertical slices are captured using contracts, implicit in the developers' minds, and 3) the code created during a TDD cycle is a sliced-based specification of a code oracle, using the contracts as slicing pre/post-conditions. We have checked the connections among TDD, contracts, and slices using a controlled experiment conducted in the industry.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑