Reducing the number of unit tests with design by contract

  • Authors:
  • Harri Hakonen;Sami Hyrynsalmi;Antero Järvi

  • Affiliations:
  • Freelancer Harri Hakonen;University of Turku;University of Turku

  • Venue:
  • Proceedings of the 12th International Conference on Computer Systems and Technologies
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Design by Contract (DbC) and unit testing (UT) are complementary approaches to improve the belief of correctness and the quality of the software. The interplay between the two techniques has been studied previously, e.g., in the use of test oracles and test automation. However, we propose that DbC should drive the UT to become more cost-effective. The paper demonstrates some means for this approach by showing how to test a mapping data structure entirely with just one unit test script.