Files in this item



application/pdfreassert-tech-report.pdf (385kB)
(no description provided)PDF


Title:ReAssert: Suggesting Repairs for Broken Unit Tests
Author(s):Daniel, Brett; Jagannath, Vilas; Dig, Danny; Marinov, Darko
Subject(s):software testing
software maintenance
software tools
software test maintenance
Abstract:Developers often change software in ways that cause tests to fail. When this occurs, developers must determine whether failures are caused by errors in the code under test or in the test code itself. In the latter case, developers must repair failing tests or remove them from the test suite. Reparing tests is time consuming but beneficial, since removing tests reduces a test suite's ability to detect regressions. Fortunately, simple program transformations can repair many failing tests automatically. We present ReAssert, a novel technique and tool that suggests repairs to failing tests' code which cause the tests to pass. Examples include replacing literal values in tests, changing assertion methods, or replacing one assertion with several. If the developer chooses to apply the repairs, ReAssert modifies the code automatically. Our experiments show that ReAssert can repair many common test failures and that its suggested repairs correspond to developers' expectations.
Issue Date:2009-08-23
Citation Info:In ASE 2009: 24th IEEE/ACM International Conference on Automated Software Engineering. Auckland, New Zealand. November, 2009
Genre:Technical Report
Publication Status:published or submitted for publication
Peer Reviewed:is peer reviewed
Sponsor:National Science Foundation grant no. CCF-0746856
Date Available in IDEALS:2009-08-23

This item appears in the following Collection(s)

Item Statistics