diff options
author | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-11-10 16:54:38 +0000 |
---|---|---|
committer | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-11-10 16:54:38 +0000 |
commit | df2f25dc459705bc1781a34fa4b51a8a561e6fcd (patch) | |
tree | 9ec8a263e52383aaead6fe60dbbb3b13e893c463 /docutils/docs/dev | |
parent | 7688249672e39bac02e0c9b23101f78bf7de96ce (diff) | |
download | docutils-df2f25dc459705bc1781a34fa4b51a8a561e6fcd.tar.gz |
Add support for ``pytest``
This is the minimal configuration required for the test suite to
pass using the pytest framework. This is part of the test suite
refactoring project.
- Ignore two classes that start with the word "Test"
- Provide the standard test header to pytest
- Update the documentation
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9237 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/docs/dev')
-rw-r--r-- | docutils/docs/dev/testing.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docutils/docs/dev/testing.txt b/docutils/docs/dev/testing.txt index 2a18fcd86..a7c62b167 100644 --- a/docutils/docs/dev/testing.txt +++ b/docutils/docs/dev/testing.txt @@ -39,15 +39,15 @@ In a pinch, the edge cases should cover most of it. __ policies.html#check-ins .. note:: - Due to incompatible customization of the standard unittest_ - framework, the test suite does not work with popular test frameworks - like pytest_ or nose_. + The standard ``alltests.py`` test runner uses the standard library's + unittest_ framework. + + For the pytest_ test framework, from a shell run:: + + pytest --quiet ./test .. _unittest: https://docs.python.org/3/library/unittest.html .. _pytest: https://pypi.org/project/pytest/ - .. _nose: https://pypi.org/project/nose3/ - - .. cf. https://sourceforge.net/p/docutils/feature-requests/81/ .. [#] When using the `Python launcher for Windows`__, make sure to specify a Python version, e.g., ``py -3.9 -u alltests.py`` for |