Test scripts and folders #206
Pinned
michaelchin
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have added a new folder debug_utils into to the test-dirs folder. Now there are three sub-folders inside the test-dirs folder. To avoid confusion, I have added README.md files for these folders. For convenience, I also copy-pasted the readme files below.
By the way, in the future, maybe we should rename test-dirs to test_dirs or other better name. Just for consistency purpose.
This
pytestcases
folder contains the formal test cases which run by Pytest automatically in GitHub Action.Do not abuse github.com. If your test case takes long time to run or download large files from Internet, think twice.
A joke. Do not train your AI model or mine cryptocurrency here!!! Thanks.
This
unittest
folder has nothing to do with the Python unittest model. This folder contains scripts which need human interaction to verify the results. They are not a part of the formal automated test suites.The Python scripts in this folder were designed to be executed manually by developers and the test results need to be verified by human, such as plotting maps and checking map details are correct. Other examples include test cases which take long time to run or download large files from Internet, such as making age grids. These scripts will not be executed automatically by default. Some of them should be refined and added to
pytestcases
folder in the future though.This folder also contains the scripts which are used by developers during their development process.
GPlately uses Pytest to automate its test cases. See the
tests-dir/pytestcases
folder. Formal test suites should be placed in thepytestcases
folder.This
debug_utils
folder contains scripts which are used by developers during their debug process, such as reproducing bugs, performance tuning, experimenting concepts, etc. Some of the scripts should be refined and added topytestcases
folder when the time comes.Beta Was this translation helpful? Give feedback.
All reactions