Unit Tests of Scientific Software: A Study on SWMM
- 15 June 2020
- book chapter
- Published by Springer Nature
- Vol. 12143, 413-427
Abstract
Testing helps assure software quality by executing program and uncovering bugs. Scientific software developers often find it challenging to carry out systematic and automated testing due to reasons like inherent model uncertainties and complex floating point computations. We report in this paper a manual analysis of the unit tests written by the developers of the Storm Water Management Model (SWMM). The results show that the 1,458 SWMM tests have a 54.0% code coverage and a 82.4% user manual coverage. We also observe a “getter-setter-getter” testing pattern from the SWMM unit tests. Based on these results, we offer insights to improve test development and coverage.Keywords
This publication has 26 references indexed in Scilit:
- A Novel Coupling Pattern in Computational Science and Engineering Software2017
- An application of metamorphic testing for testing scientific software2016
- The Oracle Problem in Software Testing: A SurveyIEEE Transactions on Software Engineering, 2015
- Testing scientific software: A systematic literature reviewInformation and Software Technology, 2014
- Modelling of green roofs' hydrologic performance using EPA's SWMMWater Science & Technology, 2013
- Testing Scientific ProgramsComputing in Science & Engineering, 2012
- Automated continuous verification for numerical simulationGeoscientific Model Development, 2011
- Engineering the Software for Understanding Climate ChangeComputing in Science & Engineering, 2009
- Evaluating the efficacy of test-driven development2006
- Analysis of faults in an N-version software experimentIEEE Transactions on Software Engineering, 1990