Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1109/ASE.2009.17acmconferencesArticle/Chapter ViewAbstractPublication PagesaseConference Proceedingsconference-collections
Article

ReAssert: Suggesting Repairs for Broken Unit Tests

Published: 16 November 2009 Publication History

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. Repairing 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.

Cited By

View all
  • (2023) StubCoder: Automated Generation and Repair of Stub Code for Mock ObjectsACM Transactions on Software Engineering and Methodology10.1145/361717133:1(1-31)Online publication date: 21-Aug-2023
  • (2022)Towards developer-centered automatic program repair: findings from BloombergProceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3540250.3558953(1578-1588)Online publication date: 7-Nov-2022
  • (2022)Fixing continuous integration tests from within the IDE with contextual informationProceedings of the 30th IEEE/ACM International Conference on Program Comprehension10.1145/3524610.3527908(287-297)Online publication date: 16-May-2022
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ASE '09: Proceedings of the 24th IEEE/ACM International Conference on Automated Software Engineering
November 2009
691 pages
ISBN:9780769538914

Sponsors

Publisher

IEEE Computer Society

United States

Publication History

Published: 16 November 2009

Check for updates

Author Tags

  1. Software maintenance
  2. Software test maintenance
  3. Software testing
  4. Software tools

Qualifiers

  • Article

Conference

ASE '09
Sponsor:

Acceptance Rates

Overall Acceptance Rate 82 of 337 submissions, 24%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)4
  • Downloads (Last 6 weeks)1
Reflects downloads up to 07 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2023) StubCoder: Automated Generation and Repair of Stub Code for Mock ObjectsACM Transactions on Software Engineering and Methodology10.1145/361717133:1(1-31)Online publication date: 21-Aug-2023
  • (2022)Towards developer-centered automatic program repair: findings from BloombergProceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3540250.3558953(1578-1588)Online publication date: 7-Nov-2022
  • (2022)Fixing continuous integration tests from within the IDE with contextual informationProceedings of the 30th IEEE/ACM International Conference on Program Comprehension10.1145/3524610.3527908(287-297)Online publication date: 16-May-2022
  • (2022)Leveraging code-test co-evolution patterns for automated test case recommendationProceedings of the 3rd ACM/IEEE International Conference on Automation of Software Test10.1145/3524481.3527222(65-76)Online publication date: 17-May-2022
  • (2022)JMockerProceedings of the ACM/IEEE 44th International Conference on Software Engineering: Companion Proceedings10.1145/3510454.3516836(125-129)Online publication date: 21-May-2022
  • (2021)Toward static test flakiness prediction: a feasibility studyProceedings of the 5th International Workshop on Machine Learning Techniques for Software Quality Evolution10.1145/3472674.3473981(19-24)Online publication date: 23-Aug-2021
  • (2021)GUIDER: GUI structure and vision co-guided test script repair for Android appsProceedings of the 30th ACM SIGSOFT International Symposium on Software Testing and Analysis10.1145/3460319.3464830(191-203)Online publication date: 11-Jul-2021
  • (2021)EvoSpexProceedings of the 43rd International Conference on Software Engineering10.1109/ICSE43902.2021.00112(1223-1235)Online publication date: 22-May-2021
  • (2021)Extracting Concise Bug-Fixing Patches from Human-Written Patches in Version Control SystemsProceedings of the 43rd International Conference on Software Engineering10.1109/ICSE43902.2021.00069(686-698)Online publication date: 22-May-2021
  • (2021)Domain-Specific Fixes for Flaky Tests with Wrong Assumptions on Underdetermined SpecificationsProceedings of the 43rd International Conference on Software Engineering10.1109/ICSE43902.2021.00018(50-61)Online publication date: 22-May-2021
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media