Skip to content

Testing

Wesley Ingwersen edited this page Sep 22, 2021 · 6 revisions

Software Quality Assurance (SQA) requirements

Background

The EPA Quality Program provides requirements for conducting quality management activities for all environmental data collection and environmental technology programs performed by or for the Agency. The primary goal of the program is to ensure the Agency’s environmental decisions are supported by data of known and documented quality. The program covers the implementation of the EPA Information Quality Guidelines. The Center for Environmental Solutions and Emergency Response (CESER) has taken additional steps to further implement the Scientific Integrity Policy at EPA for software design, development, implementation, and evaluation. We believe we are promoting a culture of scientific integrity by increasing transparency, supporting robust science, and encouraging professional development in the areas of software configuration management.

Validation

In the core stewi module, the processed and stored inventory data that are used to feed the primary function data calls, like stewi.getInventory(), are validated against alternate date sources as national or state totals during inventory generation. The validation tests and validation set metadata are found within the package in the data subfolder, while the validation results are stored at time of generation in the local user directory under stewi/validation. Warnings for potential validation issues are raised during inventory generation.

Checking code quality

PyLint is used as the primary tool for style guide enforcement. The PyLint plugin for PyCharm is the implementation of PyLint used. All main module files are assessed against PEP 8 standards and modified for compliance excepting valid reasons for non-compliance, before incorporation into a release version.