講演抄録/キーワード |
講演名 |
2018-03-01 14:50
メソッド抽出リファクタリングにおけるテストコード生成 ○三宅 皐・紙名哲生・丸山勝久(立命館大) KBSE2017-48 |
抄録 |
(和) |
リファクタリングの適用において,外部的振る舞いが保存されていることを確認するためにはテストが不可欠である.
しかしながら,ExtractMethodリファクタリングの適用において新規にメソッドを抽出しても,そのメソッドを直接呼び出すテストコードは存在しない.
このため,開発者は自分でテストコードを作成しなければならないという面倒な状況に直面する可能性が高い.
本論文では,ExtractMethodの適用において,もとのメソッドのテストコードを用いて新規に抽出したメソッドを実行することで,そのメソッドのテストコードを自動生成するツールを提案する.
このツールをソフトウェア開発に導入することで,開発者は将来のリファクタリングを安心して適用できる. |
(英) |
Tests are indispensable to check whether an applied refactoring preserves the observable behavior of refactored code.
However, an ExtractMethod refactoring in general extracts a new method without test code that directly invokes the new method.
Therefore, developers are likely to confront troublesome situations where they must create such test code.
This paper proposes a tool that automatically generates new test code for the extracted method by executing existing test code for the source method in ExtractMethod.
The tool could help developers apply safe refactorings to the extracted method in the future. |
キーワード |
(和) |
リファクタリング / 単体テスト / テストケース生成 / / / / / |
(英) |
Refactoring / unit testing / automatic test case generation / / / / / |
文献情報 |
信学技報, vol. 117, no. 465, KBSE2017-48, pp. 55-60, 2018年3月. |
資料番号 |
KBSE2017-48 |
発行日 |
2018-02-22 (KBSE) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
KBSE2017-48 |