Skip to content

CLI Arguments

Supported Arguments

Argument Description Additional Information Mandatory
--title, -t Set a custom title for your webpage - ❌
--name, -n Set a custom name for the root suite object - ❌
--doc, -d Modify the documentation of the root suite object - ❌
--metadata, -m Modify the metadata of the root suite object - ❌
--sourceprefix, -s Define a prefix e.g. for gitlab to attach a link to your source code file - ❌
--custom-jinja-template Define a custom jinja2 template from your local path If not set, internal template is used ❌
--mkdocs Use mkdocs to generate the test documentation If set, uses by default the internal mkdocs template - see --mkdocs-template-dir.
If set, OUTPUT must be a directory path object instead of a file path object
❌
--mkdocs-template-dir Define a custom mkdocs template from your local path - ❌
--custom-pdf-template Define a custom Jinja2 template for PDF overview and suite pages Only used with -f pdf ❌
--include, -i Define Robot Framework tags to include only specific tests Can be used multiple times ❌
--exclude, -e Define Robot Framework tags to exclude specific tests Can be used multiple times ❌
--output-format, -f Choose the output format: html, json, md or pdf Default: html. See Output Formats ❌
--configfile, -c Define a path to a .toml configuration file - ❌
--verbose, -v Print debug output - ❌
PATH Define path to a suite directory or suite file - ✅
OUTPUT Define the output file or output directory File for HTML/JSON/PDF, directory for MkDocs and Management ✅

Commands

The legacy command remains supported:

testdoc tests/ TestDocumentation.html

It is equivalent to the explicit generate command:

testdoc generate tests/ TestDocumentation.html

The management command adds execution-result history to the generated documentation. It requires a Robot Framework output.xml report and a reusable SQLite database file. See Management.

testdoc management \
    --report-file results/output.xml \
    --database-file results/testdoc-history.sqlite \
    tests/ management-output/