An Assertion Mechanism for Software Unit Testing to Remain Unaffected by Program ModificationThe Mechanism to Eliminate Dependency from/to Unnecessary Object

  • Authors:
  • Masanori Sakakibara;Kohei Sakurai;Seiichi Komiya

  • Affiliations:
  • Graduate School of Engineering, Shibaura Institute of Technology;Graduate School of Arts and Sciences, the University of Tokyo;Graduate School of Engineering, Shibaura Institute of Technology

  • Venue:
  • Proceedings of the 2008 conference on Knowledge-Based Software Engineering: Proceedings of the Eighth Joint Conference on Knowledge-Based Software Engineering
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Assertions are used for unit testing in Object-Oriented Programming. With assertions, a test programmer compares with an expected value the result of a test execution which is obtained by referring to the object containing its result in the object being tested. Therefore, there is a problem that test classes described as testing code depend strongly on the unnecessary objects which are not of concern to unit testing. In this work we developed an assertion mechanism which traverses objects automatically in order to eliminate the dependency from/to such unnecessary objects. Furthermore, we performed experiments on open source products, and confirmed that using this assertion mechanism decreases the coupling between a test class and other classes.