首页    期刊浏览 2024年11月23日 星期六
登录注册

文章基本信息

  • 标题:Estόria: A Framework for Code and Execution Reuse between Test Classes
  • 本地全文:下载
  • 作者:Lucas Pereira da Silva ; Patrícia Vilain
  • 期刊名称:Journal of Computer Science
  • 印刷版ISSN:1549-3636
  • 出版年度:2021
  • 卷号:17
  • 期号:2
  • 页码:90-111
  • DOI:10.3844/jcssp.2021.90.111
  • 出版社:Science Publications
  • 摘要:Manual implementation of test code can lead to maintainability problems such as test code duplication. Strategies to avoid test code duplication and to promote test code reuse exist in the literature. However, it becomes increasingly difficult to apply these strategies as the system evolves and the number of test increases. In this study, we present a novel strategy to reuse test setup code from other test classes without breaking the independency principle of the Test Automation Manifesto. We implemented this strategy in a framework called Estόria. Beyond test code reuse, the framework also enables the reuse of setup execution. Test execution reuse is important because it reduces testing runtime and allows a quicker feedback to test developers. The overall impact in promoting both code and execution reuse of test setup is an improvement in test maintainability and a reduction in testing effort. Experimental results showed a reduction of 47.62% of duplicate test lines using our strategy. In addition, execution reuse allowed to reduce the execution time by a ratio of 8.
  • 关键词:Software Testing;Test Code;Test Code Reuse;Test Execution Reuse;Fixture;Fixture Setup;Test Class
国家哲学社会科学文献中心版权所有