Testing
TJREVERB 2019-20
Description
This article explains the way any type of testing(unit testing, system testing, etc.) is conducted with pFS
Framework
Each submodule
has its own directory under the submodules/
directory. For example, the aprs
submodule is located under submodule/aprs
. Refer to Directory Structure for more details.
Under each submodule
folder, there are two files:
__init__.py
test.py
__init__.py
contains the class structure for the specific submodule
test.py
contains unit test cases for the specific submodule
Under the base directory, there is a tests.py
file. This file scraps all the submodules
for test.py
and, if present, runs a run_tests
function inside each test.py
file.
The tests.py
file is below. View this file on GitHub.
Workflow
Checkout from the testing
branch:
Update from master
Add a test.py
file to the submodule
's folder
Exception: the test file for aprs
is aprs_test.py
and iridium_test.py
for iridium
Run tests.py
Examine output and report and discrepancies. Report any discrepancies as Issues, with the bug
label. Make sure to assign the developers and testers to the Issue.
Last updated