Report::Custom
Inherits JSON::Serializable < CLI::Macros < Report < Reference < Object
A custom report format allowing to insert arbitrary content for a test.
The reports must be an array of objects with the keys name, category, status and content.
status may only have the values failure or success.
Example:
[
{
"name": "meinTest",
"category": "Kategorie",
"status": "failure",
"content": "<b>text</b>"
},
{
"name": "meinTest2",
"category": "Kategorie",
"status": "success",
"content": "<b>text</b>"
}
]
WARNING: Using custom reports is discouraged outside of development phases as they are hard to translate or re-theme.
Constructors
Class methods
Instance methods
The category this report is grouped in.
The string should be below ~20 characters to prevent the sidebar from overflowing.
The name displayed for this report.
The string should be below ~20 characters to prevent the sidebar from overflowing.
A custom report format allowing to insert arbitrary content for a test.
The reports must be an array of objects with the keys name, category, status and content.
status may only have the values failure or success.
Example:
[
{
"name": "meinTest",
"category": "Kategorie",
"status": "failure",
"content": "<b>text</b>"
},
{
"name": "meinTest2",
"category": "Kategorie",
"status": "success",
"content": "<b>text</b>"
}
]
WARNING: Using custom reports is discouraged outside of development phases as they are hard to translate or re-theme.
The status of this report.
This will control the successful-test-count in the report header, filtering options and an indicator next to the test in the sidebar.