Testing uses PyTest framework and PyTest-Twisted to handle Twisted framework.
The tests are located in the source folder under
The tests are run from the project root directory.
View the unit test coverage at: deluge-torrent.github.io
pytest deluge/tests pytest deluge/tests/test_client.py pytest deluge/tests/test_client.py -k test_connect_localclient
Running the tests for a specific plugin (requires pytest):
All the tests for Deluge can be run using Tox
See available targets:
tox -l py3 lint docs
Run specific test:
tox -e py3
Verify code with pre-commit:
tox -e lint
Deluge develop branch is tested automatically by GitHub actions.
When creating a pull request (PR) on github, units tests will be automatically be run.