doc: pytest: Framework for documenting tests and document test_000_version

In order to easily document pytests, we need to include the autodoc
extension. We also need to make sure that for building the docs, CI
includes pytest and that we have PYTHONPATH configured such that it will
find all of the tests and related files. Finally, we need to have our
comments in the test file by in proper pydoc format in order to be
included in the output.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Tom Rini
2025-05-11 12:52:56 +02:00
committed by Heinrich Schuchardt
parent be2bdfd019
commit a865d1d254
7 changed files with 27 additions and 8 deletions
+8
View File
@@ -10,3 +10,11 @@ General
:maxdepth: 1
usage
Individual tests
----------------
.. toctree::
:maxdepth: 1
test_000_version
+8
View File
@@ -0,0 +1,8 @@
test_000_version
================
.. automodule:: test_000_version
:synopsis:
:member-order: bysource
:members:
:undoc-members: