DocumentCode
2042522
Title
Contract-based mutation for testing components
Author
Jiang, Ying ; Hou, Shan-Shan ; Shan, Jin-Hui ; Zhang, Lu ; Xie, Bing
Author_Institution
Inst. of Software, Peking Univ., Beijing, China
fYear
2005
fDate
26-29 Sept. 2005
Firstpage
483
Lastpage
492
Abstract
Testing plays an important role in the maintenance of component based software development. Test adequacy for component testing is one of the hardest issues for component testing. To tackle this problem, it is a natural idea to apply mutation testing, which is a fault-based testing method used for measuring test adequacy, for component contracts, whose aim is to improve the testability of the component. Though powerful, mutation testing is usually very computation-expensive, as many mutants need to be produced and executed in mutation testing. In this paper, we propose a contract-based mutation technique for testing components. Based on the discordance between contracts and specification, our approach employs a set of high level contract mutation operators. The experimental results show that these operators can greatly reduce the number of mutants compared with traditional mutation operators. At the same time, the contract-based mutation using our contract mutation operators can provide almost the same ability as that of using traditional mutation operators. Moreover, effective test suite can be produced to reduce the maintenance effort.
Keywords
object-oriented programming; program testing; software maintenance; component based software development; component testing; contract-based mutation testing; fault-based testing method; high level contract mutation operator; software maintenance; test adequacy; Application software; Automation; Computer science; Contracts; Electronic equipment testing; Genetic mutations; Programming; Software maintenance; Software reusability; Software testing;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Maintenance, 2005. ICSM'05. Proceedings of the 21st IEEE International Conference on
ISSN
1063-6773
Print_ISBN
0-7695-2368-4
Type
conf
DOI
10.1109/ICSM.2005.36
Filename
1510143
Link To Document