Introduction
Cards displays tests in a card/box format, and is suitable for standard or non-BDD tests.
Views
Cards reporter generates the following views:
- Test
- Tag
- Bug
- Dashboard




Usage
Initialize
Start and attach Cards reporter using attachReporter
:
Shortcuts
A few shortcuts are available to speed up common tasks.
Filters
p - show passed tests
e - show error tests
f - show failed tests
s - show skipped tests
w - show warning tests
esc - clear filters
Misc
l - switch theme
Automatic Screenshot Management
To automatically create relative paths from the report, use configuration:
This configuration will copy the media-file to a directory relative to the file without you having to manually provide path that works relative to the report.
The above 2 screenshots will automatically be saved as and added to the report. This will allow you to move the screenshots along with the report without any side-affects, such breaking the report or failure to load screenshots on load.
When the build executes in the same location the first time, extent-media.0
will be created. If the report is created in the same location extent-media.1
will be created next. These directories will not be removed by Extent automatically.
Configuration
Cards reporter supports a host of configuration via XML and Java.
XML
To load configuration via XML, use loadXMLConfig()
.
The below XML configuration is available to Cards reporter.
Java
It is also possible to configure the reporter directly from code: