diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-10-24 16:03:57 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-10-30 18:22:32 +0100 |
commit | 9e089ee8d24d279d21a9ab7789cb3a0fc224a971 (patch) | |
tree | 7f36ae2ddd5081e3eaf13529a8517aa1107573bd /doc | |
parent | ac2d544ac00925761f08a2ceca0e1d722250563a (diff) | |
download | pylint-git-9e089ee8d24d279d21a9ab7789cb3a0fc224a971.tar.gz |
Make the update option work again and document it
It seems to have been possible at some point to update the expected
output of functional tests with an option. It wasn't working anymore
and was not documented.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/development_guide/contribute.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/development_guide/contribute.rst b/doc/development_guide/contribute.rst index 5b2116e9c..ac338f944 100644 --- a/doc/development_guide/contribute.rst +++ b/doc/development_guide/contribute.rst @@ -160,6 +160,12 @@ current environment in order to have faster feedback. Run from Pylint root direc python tests/test_functional.py +You can use all the options you would use for pytest, for example `-k "test_functional[len_checks]"`. +This also permit to automatically update the expected output instead of checking it with the +`-u` option like this:: + + python tests/test_functional.py -u -k "test_functional[len_checks]" + .. _`Closing issues via commit messages`: https://help.github.com/articles/closing-issues-via-commit-messages/ .. _`About pull requests`: https://help.github.com/articles/using-pull-requests/ .. _tox: https://tox.readthedocs.io/en/latest/ |