The new tool to generate test documentation pages for your Robot Framework project.
Visit the project at GitHub - robotframework-testdoc
Visit the official documentation for more details: Documentation - robotframework-testdoc
Install the tool using the following command:
pip install robotframework-testdoctestdoc suite_directory output.html
# or
testdoc suite_file output.htmltestdoc [OPTIONS] suite_directory output.htmlTip
Included Help: Visit the CLI Documentation for further arguments & details.
You can use the testdoc tool also as plugin integration.
You have two option to use it this way:
- You can write your own HTML page as
jinja2template, add this HTML template as CLI argument while generating the docs and you will get your own HTML style as documentation page. - You can use the
mkdocsintegration to define your own mkdcs template as CLI argument and the testdoc tool will internally take care of the mkdocs page generation.
For further details about the usage, please read the official documentation.
Visit the official documentation to find some Examples.
The idea of the external configuration file is, having a central place for passing the known CMD arguments via file instead of CMD parameters.
This will keep your CMD line call simple & clean.
For using this config file, just call the following command:
# Generate docu with options defined in TOML file
testdoc -c path/to/config.toml tests/ TestDocumentation.htmlUsing the pyproject requires to define the testdoc sections with the prefix tool.
Example section start: [tool.testdoc]
Using your own custom toml-file, does not require you to use the prefix. Here, you can just use [testdoc] as section header.
[tool.testdoc]
title = "New title of HTML document"
name = "New name of root suite element"
doc = "New doc text of root suite element"
sourceprefix = "gitlab::https://gitlab.com/myrepo/repo_path"
include = ["TagA", "TagB"]
exclude = ["TagC"]
verbose_mode = false
[tool.testdoc.metadata]
Author = "Your-Name"
Version = "1.0.0"
Source = "AnySourceAsMetaData"See Development.md for more information about contributing & developing this library.



