论文部分内容阅读
Refactoring is an important practice in software development and software maintenance.Many development environments provide automated tools to assist in refactoring.Since existing refactoring engines cannot guarantee the correctness of a single refactoring process, regression testing techniques are often employed to test the code after refactoring.However, large scale regression testing is too big for small refactoring activity.Re-running regression test cases is extremely time-consuming each time when we applying refactoring.Even if time is not bounded, regression test cases associated with the program may be inadequate.To secure the process of refactoring, we have to know the consequence of refactoring and hence make the test plan.In this paper, we propose a call graph based change impact analysis technique to recommend test points to developers.This technique recommends methods to developers to help them select regression test cases.If there is no unit test associated with a method, it can also help developers decide if it is necessary to generate a new test case.This technique makes the refactoring process more transparent.