- Supports Node versions >0.12
- Use fs-extra PR#59
- Supports Node versions <0.12
- Remove support for fs-extra for backward compatibility to support Node versions <0.12
- Use fs-extra instead of node-fs PR#50
- Make chai a dev dependency PR#51
- Bootstrap template fixes PR#56
- Fix Travis CI PR#57
- Failure in Before hook should fail the Feature/Scenario, Add slice to rest of the scenario pie charts PR#44
- Colors
- Making labels & colors consistent on report PR#42
- Step Duration
- light gray the step duration to distinguish from the GWT Step description
- Ambiguous Steps
- show ambiguous status on the pie-chart, features, scenarios and at steps level PR#40
- Show Metadata
- additional info about your test environment, browser, platform, app version, mode of execution, stage, and so on. PR#39
- Adding latest Previews to the readme for all themes
- Add more snapshots for the user's review
- Deprecate Store Screenshots
- Deprecate the option to store screenshot to the disk by default. If you still want to Store a screenShot to the directory, you can pass an option
storeScreenShots
to the reporter.
- Inline Screenshots
- Add support for inline png screenshots, fix package.json lookup, Fix success log: PR#32
- For backward compatibility, adds an option to store screenshot to a directory: PR#38
Type: Boolean
Default: undefined
true
: Stores all screenShots stores the screenShots to the default directory. It creates a directory 'screehshot' if does not exists.
false
or undefined
: Does not store screenShots but attaches screenShots as a step-inline images to HTML report
- Fixes ISSUE#29
- Tags on Report
- Display Tags on Feature & Scenarios: PR#35
- Filter Repeated Tags
- Filter Tags from Scenarios which is already displayed at Feature Level & add some styling to Tags PR#37
- Scenario Description
- Show Scenario Description on HTML report: ISSUE#33
- Fix for older node versions: ISSUE#30
- Option to add custom name to the project & adds footer: PR#28
- Show hidden hooks if they fail: PR#25
-
Conditionally hide hidden steps from the report: PR#20
- After & Before hooks are hidden on Cucumber JSON file. They will be visible on the report only if it has Info or Screenshot attached to it.
-
Ignore the bad JSON files when consolidating from the JSON Directory: PR#13
- Set the option
ignoreBadJsonFile
totrue
as a boolean to ignore the Bad JSON files
- Set the option
- Fixed the issue when report was breaking with the Cucumber's Doc String: Issue#14
-
Generate consolidated report from multiple JSON files: PR#12
- Provide the path of
jsonDir
to generate consolidated report,
- Provide the path of
var reporter = require('cucumber-html-reporter');
...
...
var options = {
theme: 'bootstrap',
jsonDir: 'test/reports',
output: 'test/report/cucumber_report.html',
reportSuiteAsScenarios: true,
launchReport: true
};
reporter.generate(options);
- Launch report automatically after test ends
- Pass a flag
launchReport
to the options
var reporter = require('cucumber-html-reporter');
...
...
var options = {
theme: 'bootstrap',
jsonFile: 'test/report/cucumber_report.json',
output: 'test/report/cucumber_report.html',
reportSuiteAsScenarios: true,
launchReport: true
};
reporter.generate(options);
- Fixed the issue where Error messages were not printing on the report.
- trim the text to be printed on report
- Published gkushang#10 Set charset as utf-8
- Fixes gkushang#7
- Recursively create HTML report directory if does not exists
- Remove outdated chai-fs depedency and use chai-should assertions
- Lighter the background color or Scenario attachments
- Screenshot attachment support for Cucumber release >= @1.2.0 (https://github.com/cucumber/cucumber-js/blob/master/CHANGELOG.md#bug-fixes-1)
- Format feature descriptions on report
- Add overflow scroll bar for the bigger data-table
- print error messaged in the pre
-
Show feature description on report
-
Updated README
- Fix bug when cucumber error message has kind of html tags as a string, e.g. is not defined.
-
Using
path
instead of separators to make platform agnostic -
Updated tests
hooks
-
README updated with the instructions on how to integrate reporter to the cucumber hooks
-
Fixed a bug in template path
-
README updated
-
Tooltip for Scenarios or Features in the HEADER based on reportSuiteAsScenarios flag
-
Add an optional
callback
for thegenerate(options, callback)
function -
Report
pending
steps in scenarios for bootstrap & foundation themes -
Refactored and added more tests & validations
-