diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-02-10 11:37:55 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-02-10 11:38:45 +0100 |
commit | 11de6f55f48447325325ec2f334af5576d12e2ed (patch) | |
tree | 586194afdf198bc6f4773fc480fbdfc64a2250aa /docs | |
parent | 9a9bb732752e7bec42a1c13f080b37536876e3e0 (diff) | |
download | pygobject-11de6f55f48447325325ec2f334af5576d12e2ed.tar.gz |
tests: switch to pytest as the default test runner. See #153
The TEST_NAMES env var gets translated to work with the pytest syntax
(foo.py::class::method).
Rename one class which triggers a pytest warning because it starts with
"Test" but isn't one.
Remove erroring out on Python warnings as pytest triggers some
deprecation warnings by default.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/devguide/building_testing.rst | 9 | ||||
-rw-r--r-- | docs/devguide/dev_environ.rst | 6 |
2 files changed, 13 insertions, 2 deletions
diff --git a/docs/devguide/building_testing.rst b/docs/devguide/building_testing.rst index f3ac215a..79c73f52 100644 --- a/docs/devguide/building_testing.rst +++ b/docs/devguide/building_testing.rst @@ -2,6 +2,15 @@ Building & Testing ================== +To pass extra arguments to pytest you can set "PYTEST_ADDOPTS": + +.. code:: shell + + # don't hide stdout + export PYTEST_ADDOPTS="-s" + python3 setup.py test + + Using Autotools --------------- diff --git a/docs/devguide/dev_environ.rst b/docs/devguide/dev_environ.rst index 9ca37dd9..081cd775 100644 --- a/docs/devguide/dev_environ.rst +++ b/docs/devguide/dev_environ.rst @@ -14,7 +14,7 @@ on ":ref:`gettingstarted`" first, as they are a pre-requirement. .. code:: console sudo apt build-dep pygobject - sudo apt install autoconf-archive + sudo apt install autoconf-archive python3-pytest python3-flake8 git clone https://gitlab.gnome.org/GNOME/pygobject.git cd pygobject ./autogen.sh @@ -30,7 +30,9 @@ on ":ref:`gettingstarted`" first, as they are a pre-requirement. pacman -S --needed --noconfirm base-devel mingw-w64-i686-toolchain git \ mingw-w64-i686-python3 mingw-w64-i686-python3-cairo \ mingw-w64-i686-gobject-introspection mingw-w64-i686-gtk3 \ - mingw-w64-i686-libffi autoconf-archive + mingw-w64-i686-libffi autoconf-archive mingw-w64-i686-python3-pytest \ + mingw-w64-i686-python3-pip + pip3 install --user flake8 git clone https://gitlab.gnome.org/GNOME/pygobject.git cd pygobject ./autogen.sh |