@@ -13,10 +13,8 @@ testing infrastructure are in :mod:`matplotlib.testing`.
1313.. _pytest-xdist : https://pypi.org/project/pytest-xdist/
1414
1515
16- .. _testing_requirements :
17-
18- Requirements
19- ------------
16+ Prerequisites
17+ -------------
2018
2119To run the tests you will need to
2220:ref: `set up Matplotlib for development <installing_for_devs >`. Note in
@@ -34,8 +32,8 @@ particular the :ref:`additional dependencies <test-dependencies>` for testing.
3432
3533.. _run_tests :
3634
37- Running the tests
38- -----------------
35+ Run the tests
36+ -------------
3937
4038In the root directory of your development repository run::
4139
@@ -82,8 +80,8 @@ to avoid clashes between ``pytest``'s import mode and Python's search path:
8280
8381 python -m pytest --import-mode prepend
8482
85- Viewing image test output
86- ^^^^^^^^^^^^^^^^^^^^^^^^^
83+ View image test output
84+ ^^^^^^^^^^^^^^^^^^^^^^
8785
8886The output of :ref: `image-based <image-comparison >` tests is stored in a
8987``result_images `` directory. These images can be compiled into one HTML page, containing
@@ -100,8 +98,8 @@ to the folder where the baseline test images are stored. The triage tool require
10098:ref: `QT <backend_dependencies >` is installed.
10199
102100
103- Writing tests
104- -------------
101+ Write tests
102+ -----------
105103Tests are located in :file: `lib/matplotlib/tests `. They are organized to mirror
106104the structure of the code in :file: `lib/matplotlib `. For example, tests for
107105the ``mathtext.py `` module are in :file: `lib/matplotlib/tests/test_mathtext.py `.
@@ -284,8 +282,8 @@ See the documentation of `~matplotlib.testing.decorators.image_comparison` and
284282`~matplotlib.testing.decorators.check_figures_equal ` for additional information
285283about their use.
286284
287- Using GitHub Actions for CI
288- ---------------------------
285+ CI with GitHub Actions
286+ ----------------------
289287
290288`GitHub Actions <https://docs.github.com/en/actions >`_ is a hosted CI system
291289"in the cloud".
@@ -311,8 +309,8 @@ https://github.com/your_GitHub_user_name/matplotlib/actions -- here's `an
311309example <https://github.com/QuLogic/matplotlib/actions> `_.
312310
313311
314- Using tox
315- ---------
312+ tox: Test multiple python versions
313+ ----------------------------------
316314
317315`Tox <https://tox.readthedocs.io/en/latest/ >`_ is a tool for running tests
318316against multiple Python environments, including multiple versions of Python
@@ -352,17 +350,17 @@ tests are run. For more info on the ``tox.ini`` file, see the `Tox
352350Configuration Specification
353351<https://tox.readthedocs.io/en/latest/config.html> `_.
354352
355- Building old versions of Matplotlib
356- -----------------------------------
353+ Build old versions of Matplotlib
354+ --------------------------------
357355
358356When running a ``git bisect `` to see which commit introduced a certain bug,
359357you may (rarely) need to build very old versions of Matplotlib. The following
360358constraints need to be taken into account:
361359
362360- Matplotlib 1.3 (or earlier) requires numpy 1.8 (or earlier).
363361
364- Testing released versions of Matplotlib
365- ---------------------------------------
362+ Test released versions of Matplotlib
363+ ------------------------------------
366364Running the tests on an installation of a released version (e.g. PyPI package
367365or conda package) also requires additional setup.
368366
0 commit comments