
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
robotframework-testdoc
Advanced tools
A CLI Tool to generate a Test Documentation for your RobotFramework Test Scripts.
Install the tool using the following command:
pip install robotframework-testdoc
[!IMPORTANT] Preconditions: Python & Pip Installation.
testdoc suite_directory output.html
# or
testdoc suite_file output.html
testdoc [OPTIONS] suite_directory output.html
[!TIP] Included Help: Please execute
testdoc --help
for further details about the commandline arguments or see the examples below.
Below you can find some example of using the testdoc library.
[!TIP] Of course, you can combine all of them!
# Generating docu without option
testdoc tests/ TestDocumentation.html
# Generating docu with new title, new root suite name, new root suite documentation text & new metadata
testdoc -t "Robot Framework Test Automation" -n "System Tests" -d "Root Suite Documentation" -m "Root Suite Metadata" tests/ TestDocumentation.html
# Generating docu with source prefix to navigate directly to its gitlab file path
testdoc -s "https://gitlab.com/myrepository" tests/ TestDocumentation.html
# Generating docu only with specific mentioned tags to include & exclude
testdoc -i ManagementUI -e LongTime tests/ TestDocumentation.html
# Generating docu only with multiple specific mentioned tags to include
testdoc -i ManagementUI -i MQTT tests/ TestDocumentation.html
# Generating docu only with new metadata for root suite object
testdoc -m Version=0.1.1-dev -m Tester=RobotExpert tests/ TestDocumentation.html
# Generating docu - hide tags information
testdoc --hide-tags tests/ TestDocumentation.html
# Generating docu - hide test case documentation texts
testdoc --hide-test-doc tests/ TestDocumentation.html
# Generating docu - hide test suite documentation texts
testdoc --hide-suite-doc tests/ TestDocumentation.html
# Generating docu - hide source information
testdoc --hide-source tests/ TestDocumentation.html
# Generating docu - hide keyword information (keyword calls in tests)
testdoc --hide-keywords tests/ TestDocumentation.html
The commandline arguments include
& exclude
have more or less the same functionality like in the known robot ...
command.
You can decide to weither include and / or exclude specific test cases into the test documentation.
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.html
You can select between several themes (color configurations) for your HTML document to create!
[!CAUTION] This is only possible via toml-configuration file, but not via cmd args directly!
There are a few predefined default themes available that you can choose via the toml-configuration file OR cli.
Therefore, please use the following syntax: for the toml file
[colors]
# Use the default theme
default = "default"
default = 0
# Use the default theme
default = "dark"
default = 1
# Use the default theme
default = "blue"
default = 2
# Use the default theme
default = "robot"
default = 3
For setting it via CLI, please use the following:
# Applying dark theme
testdoc ... -S dark PATH OUTPUT_FILE
# Applying blue theme
testdoc ... --style blue PATH OUTPUT_FILE
[!TIP] You can select the default theme using either a string value or an integer value.
You can apply your own custom theme to modify the colors of the created HTML document.
Use the following syntax & parameters in your toml-configuration file, to overwrite the predefined themes:
[colors]
background = "#000028"
inner_color = "#000028"
button_active_color = "#193966"
button_hover_color = "#193966"
border_color = "#CCCCCC"
text_color = "#CCCCCC"
title_color = "#00ffb9"
robot_icon = "#00ffb9"
[!TIP] Please make sure to configure all available color values from this example — missing values may cause layout or rendering issues in the generated HTML document!
FAQs
A CLI Tool to generate a Test Documentation for your RobotFramework Test Scripts.
We found that robotframework-testdoc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.