UNIT TEST RE-USING METHOD AND COMPUTER-READABLE RECORDING MEDIUM

본 발명에 따른 단위 테스트 재사용 방법은, 기생성된 단위 테스트의 테스트 대상 함수 및 전역 변수의 변경 여부에 기초하여 상기 단위 테스트를 재설정 대상으로 식별하는 단계, 재설정 대상이 된 상기 단위 테스트의 테스트 대상 함수를 변경하는 단계, 상기 재설정 대상이 된 상기 단위 테스트의 전역 변수 정보를 변경하는 단계, 변경된 테스트 대상 함수에 기초하여 상기 재설정 대상이 된 상기 단위 테스트의 스텁 정보를 변경하는 단계, 및 상기 변경된 테스트 대상 함수에 기초하여 상기 재설정 대상이 된 상기 단위 테스트의 결함 주입 정보를...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: OH SEUNGUK, CHOI KYUNGHWA, SEO HYUNJI, KANG KYUHWANG
Format: Patent
Sprache:eng ; kor
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:본 발명에 따른 단위 테스트 재사용 방법은, 기생성된 단위 테스트의 테스트 대상 함수 및 전역 변수의 변경 여부에 기초하여 상기 단위 테스트를 재설정 대상으로 식별하는 단계, 재설정 대상이 된 상기 단위 테스트의 테스트 대상 함수를 변경하는 단계, 상기 재설정 대상이 된 상기 단위 테스트의 전역 변수 정보를 변경하는 단계, 변경된 테스트 대상 함수에 기초하여 상기 재설정 대상이 된 상기 단위 테스트의 스텁 정보를 변경하는 단계, 및 상기 변경된 테스트 대상 함수에 기초하여 상기 재설정 대상이 된 상기 단위 테스트의 결함 주입 정보를 변경하는 단계를 포함한다. 본 발명에 따른 단위 테스트 재사용 방법에 의하면, 사용자가 직접 변경된 함수에 대한 테스트를 다시 생성하지 않고도 기존 테스트를 수정하여 재활용할 수 있고, 테스트 시간이 단축되는 효과가 있다. 또한, 개발 도중에 진행할 수 있는 회귀 테스트에 빠르게 대처할 수 있다 A method for unit test reuse according to the present invention comprises the steps of: on the basis of whether a function to be tested and a global variable of a pre-generated unit test are changed, identifying the unit test as a subject to be reconfigured; changing the function to be tested of the unit test that has been identified as the subject to be reconfigured; changing global variable information of the unit test that has been identified as the subject to be reconfigured; changing stub information of the unit test that has been identified as the subject to be reconfigured, on the basis of the changed function to be tested; and changing fault injection information of the unit test that has been identified as the subject to be reconfigured, on the basis of the changed function to be tested.