|
|
|
@ -154,16 +154,17 @@ running them is then a matter of: |
|
|
|
cd src/python/magnum |
|
|
|
cd src/python/magnum |
|
|
|
python -m unittest |
|
|
|
python -m unittest |
|
|
|
|
|
|
|
|
|
|
|
.. block-warning:: Subject to change |
|
|
|
.. block-default:: Disabling GL tests |
|
|
|
|
|
|
|
|
|
|
|
If the tests detect that one of `platform.WindowlessApplication`\ s is |
|
|
|
If the tests detect that one of |
|
|
|
present, GL tests (suffixed with ``_gl``) will be run as well. Currently |
|
|
|
`platform.WindowlessApplication <platform.egl.WindowlessApplication>`\ s is |
|
|
|
there's no way to blacklist them if windowless application implementations |
|
|
|
present, GL tests (suffixed with ``_gl``) will be run as well. In order to |
|
|
|
are compiled, you can only whitelist-run the remaining tests: |
|
|
|
disable them (for example when running on a headless CI), set the |
|
|
|
|
|
|
|
:sh:`$MAGNUM_SKIP_GL_TESTS` environment variable to ``ON``: |
|
|
|
|
|
|
|
|
|
|
|
.. code:: sh |
|
|
|
.. code:: sh |
|
|
|
|
|
|
|
|
|
|
|
python -m unittest test.test_gl test.test_math # test.test_gl_gl is a GL test |
|
|
|
MAGNUM_SKIP_GL_TESTS=ON python -m unittest |
|
|
|
|
|
|
|
|
|
|
|
For code coverage, `coverage.py <https://coverage.readthedocs.io/>`_ is used. |
|
|
|
For code coverage, `coverage.py <https://coverage.readthedocs.io/>`_ is used. |
|
|
|
Get it via ``pip`` or as a system package. |
|
|
|
Get it via ``pip`` or as a system package. |
|
|
|
|