summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/README.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--share/extensions/tests/README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/share/extensions/tests/README.md b/share/extensions/tests/README.md
new file mode 100644
index 0000000..e5990d2
--- /dev/null
+++ b/share/extensions/tests/README.md
@@ -0,0 +1,33 @@
+# Inkscape Extension Tests
+
+This folder contains tests for the Inkscape extensions and libraries in this
+repo.
+
+Pytest and Pytest-Coverage are required to run tests. Usually the best way to install it is:
+
+More info here: https://docs.pytest.org/en/latest/getting-started.html
+
+```shell
+$ # Python 2
+$ pip install pytest pytest-cov
+
+$ # Python 3
+$ pip3 install pytest pytest-cov
+```
+
+To run all tests:
+
+```shell
+# In the top-level directory of the extensions repo:
+$ python2 -m pytest
+$ python3 -m pytest
+```
+
+To run the tests in a specific file (in this case,
+`tests/test_color_blackandwhite.py`):
+
+```shell
+# In the top-level directory of the extensions repo:
+$ python2 -m pytest tests/test_color_blackandwhite.py
+$ python3 -m pytest tests/test_color_blackandwhite.py
+```