Science Inventory

Unit and Regression Tests of Scientific Software: A Study on SWMM

Citation:

Peng, Z., X. Lin, M. Simon, AND N. Niu. Unit and Regression Tests of Scientific Software: A Study on SWMM. Journal of Computational Science. Elsevier B.V., Amsterdam, Netherlands, 53:101347, (2021). https://doi.org/10.1016/j.jocs.2021.101347

Impact/Purpose:

This invited paper discusses unit and regression testing for scientific software such as SWMM.

Description:

Testing helps assure software quality by executing programs and uncovering bugs. Scientific software developers often find it challenging to carry out systematic and automated testing due to reasons such as inherent model uncertainties and complex floating-point computations. Extending the recent work on analyzing the unit tests written by the developers of the Storm Water Management Model (SWMM), we report in this paper the investigation of both unit and regression tests of SWMM. The results show that the 1,458 SWMM tests have a 54.0% code coverage and an 82.4% User’s Manual coverage. Meanwhile, an examination of eight regression tests from a test set shows a 79.5% code coverage and a near 100% User’s Manual coverage. We also observe a “getter-setter-getter” testing pattern from the SWMM unit tests and suggest a diversified way of designing or adopting regression tests.

Record Details:

Record Type:DOCUMENT( JOURNAL/ PEER REVIEWED JOURNAL)
Product Published Date:07/01/2021
Record Last Revised:05/19/2021
OMB Category:Other
Record ID: 351406