- Title
- Is this a bug or an obsolete test?
- Creator
- Hao, Dan; Lan, Tian; Zhang, Hongyu; Guo, Chao; Zhang, Lu
- Relation
- 27th European Conference on Object-Orientated Programming (ECOOP 2013). ECOOP 2013 – Object-Oriented Programming: 27th European Conference Montpellier, France, July 1-5, 2013 Proceedings (Montpellier, France 1-5 July, 2013) p. 602-328
- Publisher Link
- http://dx.doi.org/10.1007/978-3-642-39038-8_25
- Publisher
- Springer
- Resource Type
- conference paper
- Date
- 2013
- Description
- In software evolution, developers typically need to identify whether the failure of a test is due to a bug in the source code under test or the obsoleteness of the test code when they execute a test suite. Only after finding the cause of a failure can developers determine whether to fix the bug or repair the obsolete test. Researchers have proposed several techniques to automate test repair. However, test-repair techniques typically assume that test failures are always due to obsolete tests. Thus, such techniques may not be applicable in real world software evolution when developers do not know whether the failure is due to a bug or an obsolete test. To know whether the cause of a test failure lies in the source code under test or in the test code, we view this problem as a classification problem and propose an automatic approach based on machine learning. Specifically, we target Java software using the JUnit testing framework and collect a set of features that may be related to failures of tests. Using this set of features, we adopt the Best-first Decision Tree Learning algorithm to train a classifier with some existing regression test failures as training instances. Then, we use the classifier to classify future failed tests. Furthermore, we evaluated our approach using two Java programs in three scenarios (within the same version, within different versions of a program, and between different programs), and found that our approach can effectively classify the causes of failed tests.
- Subject
- bug; source code; testing; software
- Identifier
- http://hdl.handle.net/1959.13/1356998
- Identifier
- uon:31845
- Identifier
- ISBN:9783642390371
- Language
- eng
- Reviewed
- Hits: 2425
- Visitors: 2752
- Downloads: 0
Thumbnail | File | Description | Size | Format |
---|