Sciweavers

Share
SIGSOFT
2009
ACM

MSeqGen: object-oriented unit-test generation via mining source code

9 years 9 months ago
MSeqGen: object-oriented unit-test generation via mining source code
An objective of unit testing is to achieve high structural coverage of the code under test. Achieving high structural coverage of object-oriented code requires desirable method-call sequences that create and mutate objects. These sequences help generate target object states such as argument or receiver object states (in short as target states) of a method under test. Automatic generation of sequences for achieving target states is often challenging due to a large search space of possible sequences. On the other hand, code bases using object types (such as receiver or argument object types) include sequences that can be used to assist automatic testgeneration approaches in achieving target states. In this paper, we propose a novel approach, called MSeqGen, that mines code bases and extracts sequences related to receiver or argument object types of a method under test. Our approach uses these extracted sequences to enhance two state-of-the-art test-generation approaches: random testing ...
Suresh Thummalapenta, Tao Xie, Nikolai Tillmann, J
Added 19 May 2010
Updated 19 May 2010
Type Conference
Year 2009
Where SIGSOFT
Authors Suresh Thummalapenta, Tao Xie, Nikolai Tillmann, Jonathan de Halleux, Wolfram Schulte
Comments (0)
books