summaryrefslogtreecommitdiffstats
path: root/docs/source/contributing/testing.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/contributing/testing.md')
-rw-r--r--docs/source/contributing/testing.md28
1 files changed, 7 insertions, 21 deletions
diff --git a/docs/source/contributing/testing.md b/docs/source/contributing/testing.md
index 4df8ca669..beb30a41c 100644
--- a/docs/source/contributing/testing.md
+++ b/docs/source/contributing/testing.md
@@ -1,10 +1,6 @@
# Running tests
-Deluge testing is implemented using Trial which is Twisted's testing framework
-and an extension of Python's unittest.
-
-See Twisted website for documentation on [Twisted Trial](http://twistedmatrix.com/trac/wiki/TwistedTrial)
-and [Writing tests using Trial](http://twistedmatrix.com/documents/current/core/howto/testing.html).
+Testing uses [PyTest] framework and [PyTest-Twisted] to handle Twisted framework.
## Testing
@@ -12,16 +8,6 @@ The tests are located in the source folder under `deluge/tests`.
The tests are run from the project root directory.
View the unit test coverage at: [deluge-torrent.github.io](http://deluge-torrent.github.io)
-### Trial
-
-Here are some examples that show running all the tests through to selecting an
-individual test.
-
- trial deluge
- trial deluge.tests.test_client
- trial deluge.tests.test_client.ClientTestCase
- trial deluge.tests.test_client.ClientTestCase.test_connect_localclient
-
### Pytest
pytest deluge/tests
@@ -41,7 +27,6 @@ All the tests for Deluge can be run using [Tox](https://pypi.python.org/pypi/tox
### See available targets:
tox -l
- py27
py3
lint
docs
@@ -54,11 +39,12 @@ All the tests for Deluge can be run using [Tox](https://pypi.python.org/pypi/tox
tox -e lint
-## Travis CI
+## CI
+
+Deluge develop branch is tested automatically by GitHub actions.
-Deluge develop branch is tested automatically by [Travis].
-When creating a pull request (PR) on [github], Travis will automatically run
-the unit tests with the code in the PR.
+When creating a pull request (PR) on [github], units tests will be automatically be run.
-[travis]: https://travis-ci.org/deluge-torrent/deluge
[github]: https://github.com/deluge-torrent/deluge/pulls
+[pytest]: https://docs.pytest.org/en/
+[pytest-twisted]: https://github.com/pytest-dev/pytest-twisted