Unit and regression tests of scientific software: A study on SWMM.

J Comput Sci

Department of Electrical Engineering and Computer Science, University of Cincinnati, Cincinnati, OH 45221, USA.

Published: July 2021


Category Ranking

98%

Total Visits

921

Avg Visit Duration

2 minutes

Citations

20

Article Abstract

Testing helps assure software quality by executing a 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. Extending the recent work on analyzing the unit tests written by the developers of the Storm Water Management Model (SWMM) [32], we report in this paper the investigation of both unit and regression tests of SWMM. The results show that the 2953 unit tests of SWMM have a 39.7% statement-level code coverage and a 82.4% user manual coverage. Meanwhile, an examination of 58 regression tests of SWMM shows a 44.9% statement-level code coverage and a near 100% user manual coverage. We also observe a "getter-setter-getter" testing pattern from the SWMM unit tests, and suggest a diversified way of executing regression tests.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC8128694PMC
http://dx.doi.org/10.1016/j.jocs.2021.101347DOI Listing

Publication Analysis

Top Keywords

regression tests
16
unit tests
12
tests swmm
12
unit regression
8
scientific software
8
statement-level code
8
code coverage
8
user manual
8
manual coverage
8
tests
7

Similar Publications

Background: The loss of a loved one is a common yet stressful event in later life. Internet- and mobile-based interventions have been proposed as an effective treatment approach for individuals with prolonged grief.

Objective: The AgE-health study aimed to investigate the efficacy of an eHealth intervention, trauer@ktiv, in reducing prolonged grief symptoms in a sample of older adults.

View Article and Find Full Text PDF

Estimating statistical power is essential for designing behavioral medicine studies efficiently and conserving finite resources. Sometimes behavioral medicine researchers are interested in calculating power for 1-sided z-tests of individual parameters (e.g.

View Article and Find Full Text PDF

Background And Objectives: Explore whether community social capital measures (system of resources available to individuals through community engagement) are related to surgical outcomes among intracranial tumor patients.

Methods: Adults who underwent resection at a single medical center for intracranial tumor was identified and their zip codes were matched to three variables derived from the Social Capital Atlas: economic connectedness, volunteering rate, and civic organizations. The economic connectedness score quantifies the degree to which low-income and high-income community members are friends with each other, the volunteering rate is defined as the proportion of a given community engaged in community organizations and the civic organization score is defined as the number of local civic organizations within a given community.

View Article and Find Full Text PDF

Purpose: Black women with hormone receptor-positive (HR +) breast cancer are twice as likely as White women to have weakly HR + tumors (1-10% positive cells). Patients with weakly HR + tumors are less frequently prescribed ET and have 60% higher mortality than strongly HR + tumors (> 10% positive cells). We evaluated factors associated with ET prescription and self-reported use among Black women with HR + breast cancer.

View Article and Find Full Text PDF

Objective: To develop and validate a prognostic nomogram for predicting the risk of proximal ureteral impacted calculi, supporting personalized clinical management.

Methods: This retrospective, multicenter study employed a continuous cohort of 391 patients with proximal ureteral stones treated between January 2021 and April 2024. Data from Longyan People's Hospital (affiliated with Xiamen Medical College) comprised the training set, while independent external validation was performed using data from The Fifth Affiliated Hospital of Fujian University of Traditional Chinese Medicine.

View Article and Find Full Text PDF