]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
pytests: add requirements and doc
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 12 Nov 2018 16:19:02 +0000 (17:19 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 4 Dec 2018 16:13:42 +0000 (17:13 +0100)
tests/pytests/README.md [new file with mode: 0644]
tests/pytests/requirements.txt [new file with mode: 0644]

diff --git a/tests/pytests/README.md b/tests/pytests/README.md
new file mode 100644 (file)
index 0000000..af340ab
--- /dev/null
@@ -0,0 +1,16 @@
+Transport tests
+===============
+
+Requirements
+------------
+
+- pip3 install -r requirements.txt
+
+Executing tests
+---------------
+
+```
+pytest-3  # sequential, all tests
+pytest-3 test_conn_mgmt.py::test_ignore_garbage   # specific test only
+pytest-3 -n 8  # parallel with 8 jobs - requires pytest-xdist
+```
diff --git a/tests/pytests/requirements.txt b/tests/pytests/requirements.txt
new file mode 100644 (file)
index 0000000..d006bcc
--- /dev/null
@@ -0,0 +1,3 @@
+dnspython
+jinja2
+pytest