@@ -87,7 +87,7 @@ current environment in order to have faster feedback. Run from Pylint root direc
8787
8888 python tests/test_functional.py
8989
90- You can use all the options you would use for pytest , for example ``-k "test_functional[len_checks]" ``.
90+ You can use all the options you would use for pytest _ , for example ``-k "test_functional[len_checks]" ``.
9191Furthermore, if required the .txt file with expected messages can be regenerated based
9292on the the current output by appending ``--update-functional-output `` to the command line::
9393
@@ -138,6 +138,25 @@ and should exit with exit code 2 the ``.out`` file should be named ``bad_configu
138138The content of the ``.out `` file should have a similar pattern as a normal Pylint output. Note that the
139139module name should be ``{abspath} `` and the file name ``{relpath} ``.
140140
141+ Primer tests
142+ -------------------------------------------
143+
144+ Pylint also uses what we refer to as ``primer `` tests. These are tests that are run automatically
145+ in our Continuous Integration and check whether any changes in Pylint lead to crashes or fatal errors
146+ on the ``stdlib `` and a selection of external repositories.
147+
148+ To run the ``primer `` tests you can add either ``--primer-stdlib `` or ``--primer-external `` to the
149+ pytest _ command. If you want to only run the ``primer `` you can add either of their marks, for example::
150+
151+ pytest -m primer_external --primer-external
152+
153+ The list of repositories is created on the basis of three criteria: 1) projects need to use a diverse
154+ range of language features, 2) projects need to be well maintained and 3) projects should not have a codebase
155+ that is too repetitive. This guarantees a good balance between speed of our CI and finding potential bugs.
156+
157+ You can find the latest list of repositories and any relevant code for these tests in the ``tests/primer ``
158+ directory.
159+
141160.. _tox : https://tox.readthedocs.io/en/latest/
142161.. _pytest : https://pytest.readthedocs.io/en/latest/
143162.. _astroid : https://github.com/pycqa/astroid
0 commit comments