cucumber-html-reporter
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -0,1 +1,33 @@ | ||
### 0.2.7 (2016-08-16) | ||
#### Enhancements | ||
* Launch report automatically after test ends | ||
* Pass a flag `launchReport` to the options | ||
``` bash | ||
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); | ||
``` | ||
### 0.2.6 (2016-07-29) | ||
#### BugFix | ||
* Fixed the issue where Error messages were not printing on the report. | ||
### 0.2.5 (2016-07-28) | ||
@@ -2,0 +34,0 @@ |
@@ -9,2 +9,3 @@ 'use strict'; | ||
var nodeFs = require('node-fs'); | ||
var open = require('open'); | ||
@@ -226,4 +227,12 @@ var generateReport = function(options) { | ||
function launchReport() { | ||
if (fs.existsSync(options.output) && (options.launchReport || options.launchReport === 'true')) { | ||
open(options.output); | ||
} | ||
} | ||
if (isValidJsonFile()) { | ||
generateReport(options); | ||
launchReport(); | ||
if (callback) { | ||
@@ -230,0 +239,0 @@ callback(); |
{ | ||
"name": "cucumber-html-reporter", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Generates Cucumber HTML reports in three different themes", | ||
@@ -51,4 +51,5 @@ "main": "index.js", | ||
"lodash": "^4.13.1", | ||
"node-fs": "^0.1.7" | ||
"node-fs": "^0.1.7", | ||
"open": "0.0.5" | ||
} | ||
} |
@@ -41,3 +41,4 @@ cucumber-html-reporter | ||
output: 'test/report/cucumber_report.html', | ||
reportSuiteAsScenarios: true | ||
reportSuiteAsScenarios: true, | ||
launchReport: true | ||
}; | ||
@@ -95,2 +96,12 @@ | ||
#### `launchReport` | ||
Type: `Boolean` | ||
Automatically launch HTML report at the end of test suite | ||
`true`: Launch HTML report in the default browser | ||
`false`: Do not launch HTML report at the end of test suite | ||
## Tips | ||
@@ -97,0 +108,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
308487
605
151
7
+ Addedopen@0.0.5
+ Addedopen@0.0.5(transitive)