File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,29 @@ roundup will write each email message that it sends to that file
182182instead to the internet. This environment variable is independent of
183183the python -O flag.
184184
185+ Testing Notes
186+ -------------
187+
188+ Create tests for your changes. Also run the tests in reverse to try to
189+ identify test dependencies. You can do this by creating a
190+ ``conftest.py`` in the top of the source tree and include the
191+ following contents::
192+
193+ def pytest_collection_modifyitems(items):
194+ items.reverse()
195+
196+ to run all the tests in reverse. More tips at: https://testmon.org/blog/hidden-test-dependencies/.
197+
198+ The full test suite can take a while to run. The `pytest-testmon
199+ <https://pypi.org/project/pytest-testmon/>`_ package can be installed
200+ with pip. It analyzes changes to code and run tests that test that
201+ code. This can significantly reduce the time it takes to run a basic
202+ test suite. Use it by running::
203+
204+ python3 -m pytest -v --testmon test
205+
206+ once over the whole test suite. Then subsequent calls will analyze the
207+ changed files/functions and run tests that cover those changes.
185208
186209Internationalization Notes
187210--------------------------
You can’t perform that action at this time.
0 commit comments