testx-html-reporter
v0.1.1
Published
HTML reporter for testx
Downloads
825
Maintainers
Readme
testx-html-reporter
HTML and screenshot reporter for testx.
This work is heavily based on Protractor Jasmine 2 HTML Reporter.
Usage
In your Protractor configuration file, register testx-html-reporter:
Options
Destination folder
Output directory for created files. All screenshots and reports will be stored here.
If the directory doesn't exist, it will be created automatically or otherwise cleaned before running the test suite.
Default folder: ./
Show passed specs (optional)
By default the passed specifications will not be included in the report. To include them do:
Default value: false
Show skipped count (optional)
By default the number of skipped specifications will not be included in the report. To include it do:
Default value: false
Show stack trace (optional)
By default the stacktrace of failed assertions will not be included in the report. To include it do:
Default value: false
Screenshots folder (optional)
By default the screenshots are stored in a folder inside the default path
If the directory doesn't exist, it will be created automatically or otherwise cleaned before running the test suite.
Default folder: screenshots
Take screenshots (optional)
When this option is enabled, reporter will create screenshots for specs.
Default is true
Take screenshots only on failure (optional) - (NEW)
This option allows you to choose if create screenshots always or only when failures. If you disable screenshots, obviously this option will not be taken into account.
Default is false (So screenshots are always generated)
FilePrefix (optional)
Filename for html report.
Default is htmlReport.html
Consolidate and ConsolidateAll (optional)
This option allow you to create diferent HTML for each test suite.
Default is false