如何测试提取方法重构

Ioannis Megas, A. Zarras, Chris Karelis
{"title":"如何测试提取方法重构","authors":"Ioannis Megas, A. Zarras, Chris Karelis","doi":"10.1145/3424771.3424793","DOIUrl":null,"url":null,"abstract":"Extract Method is probably the most commonly used refactoring. Although it may seem quite simple at a first glance, there are many cases that it can become fairly complex. Local variables and parameters can make this refactoring difficult to implement. The whole procedure can also become quite error-prone. The only way to be sure that we performed the refactoring without introducing bugs is by means of testing. Testing, however, seems to many application developers a very bothersome procedure. To facilitate their work we discuss patterns that customize existing testing techniques to the specificities of the Extract Method refactoring.","PeriodicalId":216842,"journal":{"name":"Proceedings of the European Conference on Pattern Languages of Programs 2020","volume":"92 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"How to Test the Extract Method Refactoring\",\"authors\":\"Ioannis Megas, A. Zarras, Chris Karelis\",\"doi\":\"10.1145/3424771.3424793\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Extract Method is probably the most commonly used refactoring. Although it may seem quite simple at a first glance, there are many cases that it can become fairly complex. Local variables and parameters can make this refactoring difficult to implement. The whole procedure can also become quite error-prone. The only way to be sure that we performed the refactoring without introducing bugs is by means of testing. Testing, however, seems to many application developers a very bothersome procedure. To facilitate their work we discuss patterns that customize existing testing techniques to the specificities of the Extract Method refactoring.\",\"PeriodicalId\":216842,\"journal\":{\"name\":\"Proceedings of the European Conference on Pattern Languages of Programs 2020\",\"volume\":\"92 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2020-07-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the European Conference on Pattern Languages of Programs 2020\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3424771.3424793\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the European Conference on Pattern Languages of Programs 2020","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3424771.3424793","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

提取方法可能是最常用的重构方法。虽然乍一看似乎很简单,但在许多情况下,它可能会变得相当复杂。局部变量和参数会使这种重构难以实现。整个过程也很容易出错。确保我们执行重构而不引入bug的唯一方法是通过测试。然而,对于许多应用程序开发人员来说,测试似乎是一个非常麻烦的过程。为了方便他们的工作,我们讨论了定制现有测试技术的模式,以满足提取方法重构的特殊性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
How to Test the Extract Method Refactoring
Extract Method is probably the most commonly used refactoring. Although it may seem quite simple at a first glance, there are many cases that it can become fairly complex. Local variables and parameters can make this refactoring difficult to implement. The whole procedure can also become quite error-prone. The only way to be sure that we performed the refactoring without introducing bugs is by means of testing. Testing, however, seems to many application developers a very bothersome procedure. To facilitate their work we discuss patterns that customize existing testing techniques to the specificities of the Extract Method refactoring.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信