Skip to main content
U.S. flag

An official website of the United States government

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

Published by U.S. EPA Office of Research and Development (ORD) | U.S. Environmental Protection Agency | Catalog Last Checked: April 21, 2026 at 08:01 PM | Dataset Last Updated: September 08, 2020
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. This dataset is associated with the following publication: 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).

Resources

3 resources available

  • Mappings_of_SWMM_unit_tests.xlsx

    APPLICATION/VND.OPENXMLFORMATS-OFFICEDOCUMENT.SPREADSHEETML.SHEET
  • regression test data.xlsx

    APPLICATION/VND.OPENXMLFORMATS-OFFICEDOCUMENT.SPREADSHEETML.SHEET
  • test study on swmm(data table).xlsx

    APPLICATION/VND.OPENXMLFORMATS-OFFICEDOCUMENT.SPREADSHEETML.SHEET

Find Related Datasets

data.gov

An official website of the GSA's Technology Transformation Services

Looking for U.S. government information and services?
Visit USA.gov