The project aims to be fully tested on every targetted platform through intensive CI/CD on every Pull Request.
Still, it’s preferable to run tests locally before pushing to the public remote repository.
tests are located in the
a test file is prefixed with
ideally a test is written using the standard library, so as a “pure” unittest class, even if for some needs the pytest framework can be used.
quick tests scripts can be stored in
tests/devfolder to illustrate or check a behavior
Complete it by installing tests requirements:
python -m pip install -U -r requirements/testing.txt
Simply run Pytest:
It’s also possible to run an individual test:
python -m unittest tests.test_qplugin_object.TestQgisPluginObject.test_profile_load_from_json_basic