ReAssert: A tool for repairing broken unit tests

Brett Daniel, Danny Dig, Tihomir Gvero, Vilas Jagannath, Johnston Jiaa, Damion Mitchell, Jurand Nogiec, Shin Hwei Tan, Darko Marinov

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Successful software systems continuously change their requirements and thus code. When this happens, some existing tests get broken because they no longer reflect the intended behavior, and thus they need to be updated. Repairing broken tests can be time-consuming and difficult. We present ReAssert, a tool that can automatically suggest repairs for broken unit tests. Examples include replacing literal values in tests, changing assertion methods, or replacing one assertion with several. Our experiments show that ReAssert can repair many common test failures and that its suggested repairs match developers' expectations.

Original languageEnglish (US)
Title of host publicationICSE 2011 - 33rd International Conference on Software Engineering, Proceedings of the Conference
PublisherIEEE Computer Society
Pages1010-1012
Number of pages3
ISBN (Print)9781450304450
DOIs
StatePublished - Jan 1 2011

Keywords

  • reassert
  • test repair
  • testing tools
  • unit testing

ASJC Scopus subject areas

  • Software

Fingerprint Dive into the research topics of 'ReAssert: A tool for repairing broken unit tests'. Together they form a unique fingerprint.

Cite this