cucumber-html-reporter
Advanced tools
Comparing version 2.0.1 to 2.0.2
### 2.0.1 (2017-07-07) | ||
### 2.0.2 (Jul-10-2017) | ||
* Support scoped packages [PR#93](https://github.com/gkushang/cucumber-html-reporter/pull/93) | ||
* Fix issue[#85](https://github.com/gkushang/cucumber-html-reporter/issues/85) with Screenshot attachments with Selenium 3 & Cucumber 2 [PR#95](https://github.com/gkushang/cucumber-html-reporter/pull/95) | ||
### 2.0.1 (Jul-07-2017) | ||
* Save screenshots into custom directory [PR#88](https://github.com/gkushang/cucumber-html-reporter/pull/88) | ||
@@ -10,5 +18,7 @@ | ||
* Add tests for Save Screenshots & refactor [PR#91](https://github.com/gkushang/cucumber-html-reporter/pull/91) | ||
### 2.0.0 (2017-06-09) | ||
### 2.0.0 (Jun-09-2017) | ||
##### Support for Cucumber 2 | ||
@@ -25,3 +35,3 @@ | ||
### 0.5.0 (2017-06-01) | ||
### 0.5.0 (Jun-01-2017) | ||
@@ -36,3 +46,3 @@ ##### Enhancement | ||
### 0.4.2 (2017-04-27) | ||
### 0.4.2 (Apr-27-2017) | ||
@@ -44,3 +54,3 @@ ##### Fix | ||
### 0.4.1 (2017-04-27) | ||
### 0.4.1 (Apr-27-2017) | ||
@@ -57,3 +67,3 @@ ##### Enhancement | ||
### 0.4.0 (2017-03-24) | ||
### 0.4.0 (Mar-24-2017) | ||
@@ -67,3 +77,3 @@ * Supports Node versions >0.12 | ||
### 0.3.9 (2017-03-24) | ||
### 0.3.9 (Mar-24-2017) | ||
@@ -77,3 +87,3 @@ * Supports Node versions <0.12 | ||
### 0.3.8 (2017-03-23) | ||
### 0.3.8 (Mar-23-2017) | ||
@@ -88,3 +98,3 @@ ##### Fix | ||
### 0.3.7 (2016-12-09) | ||
### 0.3.7 (Dec-06-2016) | ||
@@ -96,3 +106,3 @@ ##### Fix | ||
### 0.3.6 (2016-12-06) | ||
### 0.3.6 (Dec-06-2016) | ||
@@ -104,3 +114,3 @@ ##### Fix | ||
### 0.3.5 (2016-11-29) | ||
### 0.3.5 (Nov-29-2016) | ||
@@ -113,3 +123,3 @@ ##### Enhancements | ||
### 0.3.4 (2016-11-28) | ||
### 0.3.4 (Nov-28-2016) | ||
@@ -122,3 +132,3 @@ ##### Enhancements | ||
### 0.3.3 (2016-11-28) | ||
### 0.3.3 (Nov-28-2016) | ||
@@ -131,3 +141,3 @@ ##### Enhancements | ||
### 0.3.2 (2016-11-21) | ||
### 0.3.2 (Nov-21-2016) | ||
@@ -140,3 +150,3 @@ ##### Enhancements | ||
### 0.3.1 (2016-11-18) | ||
### 0.3.1 (Nov-18-2016) | ||
@@ -148,3 +158,3 @@ ##### Enhancements | ||
### 0.3.0 (2016-11-18)__ | ||
### 0.3.0 (Nov-18-2016) | ||
@@ -173,3 +183,3 @@ * Deprecate Store Screenshots | ||
### 0.2.17 (2016-11-17) | ||
### 0.2.17 (Nov-17-2016) | ||
@@ -184,3 +194,3 @@ ##### Enhancements | ||
### 0.2.16 (2016-10-07) | ||
### 0.2.16 (Oct-07-2016) | ||
@@ -193,3 +203,3 @@ ##### Enhancements | ||
### 0.2.15 (2016-09-28) | ||
### 0.2.15 (Sep-28-2016) | ||
@@ -201,3 +211,3 @@ ##### Fix | ||
### 0.2.14 (2016-09-27) | ||
### 0.2.14 (Sep-27-2016) | ||
@@ -209,3 +219,3 @@ ##### Enhancements | ||
### 0.2.13 (2016-09-27) | ||
### 0.2.13 (Sep-27-2016) | ||
@@ -217,3 +227,3 @@ ##### Enhancements | ||
### 0.2.12 (2016-09-27) | ||
### 0.2.12 (Sep-27-2016) | ||
@@ -225,3 +235,3 @@ ##### Fixes | ||
### 0.2.11 (2016-09-26) | ||
### 0.2.11 (Sep-26-2016) | ||
@@ -235,3 +245,3 @@ ##### Fixes | ||
### 0.2.10 (2016-09-22) | ||
### 0.2.10 (Sep-22-2016) | ||
@@ -245,3 +255,3 @@ ##### Enhancements | ||
### 0.2.9 (2016-09-08) | ||
### 0.2.9 (Sep-08-2016) | ||
@@ -260,3 +270,3 @@ ##### Enhancements | ||
### 0.2.8 (2016-08-30) | ||
### 0.2.8 (Aug-30-2016) | ||
@@ -287,3 +297,3 @@ ##### Enhancements | ||
### 0.2.7 (2016-08-16) | ||
### 0.2.7 (Aug-16-2016) | ||
@@ -314,3 +324,3 @@ ##### Enhancements | ||
### 0.2.6 (2016-07-29) | ||
### 0.2.6 (Jul-29-2016) | ||
@@ -321,3 +331,3 @@ ##### BugFix | ||
### 0.2.5 (2016-07-28) | ||
### 0.2.5 (Jul-28-2016) | ||
@@ -328,3 +338,3 @@ ##### Enhancements | ||
### 0.2.4 (2016-07-28) | ||
### 0.2.4 (Jul-28-2016) | ||
@@ -335,3 +345,3 @@ ##### BugFix | ||
### 0.2.3 (2016-07-26) | ||
### 0.2.3 (Jul-26-2016) | ||
@@ -342,3 +352,3 @@ ##### Enhancements | ||
### 0.2.2 (2016-07-21) | ||
### 0.2.2 (Jul-21-2016) | ||
@@ -349,3 +359,3 @@ ##### BugFix | ||
### 0.2.1 (2016-07-12) | ||
### 0.2.1 (Jul-12-2016) | ||
@@ -359,3 +369,3 @@ ##### Enhancements | ||
### 0.2.0 (2016-07-10) | ||
### 0.2.0 (Jul-10-2016) | ||
@@ -367,3 +377,3 @@ ##### Support for Cucumber@1.2.0 version | ||
### 0.1.6 (2016-07-07) | ||
### 0.1.6 (Jul-07-2016) | ||
@@ -377,3 +387,3 @@ ##### Enhancements | ||
### 0.1.5 (2016-07-05) | ||
### 0.1.5 (Jul-05-2016) | ||
@@ -391,3 +401,3 @@ ##### Enhancements | ||
### 0.1.4 (2016-06-28) | ||
### 0.1.4 (Jun-28-2016) | ||
@@ -403,3 +413,3 @@ ##### Enhancements | ||
### 0.1.3 (2016-06-27) | ||
### 0.1.3 (Jun-27-2016) | ||
@@ -413,3 +423,3 @@ ##### Bug fixes | ||
### 0.1.1 (2016-06-27) | ||
### 0.1.1 (Jun-27-2016) | ||
@@ -416,0 +426,0 @@ ##### New Features |
@@ -74,3 +74,6 @@ 'use strict'; | ||
return { | ||
name: name, | ||
name: { | ||
plain: name, | ||
sanitized: name | ||
}, | ||
passed: 0, | ||
@@ -93,3 +96,3 @@ failed: 0, | ||
var subSuite = suite.suites.find(function (s) { | ||
return s.name === subSuiteName; | ||
return s.name.plain === subSuiteName; | ||
}); | ||
@@ -96,0 +99,0 @@ if (!subSuite) { |
@@ -25,2 +25,8 @@ 'use strict'; | ||
var sanitize = function (name, find) { | ||
var unsafeCharacters = find || /[\/\\\|:"\*\?<>]/g; | ||
name = name.trim().replace(unsafeCharacters, '_'); | ||
return name; | ||
}; | ||
featureOutput.summary = { | ||
@@ -45,3 +51,6 @@ isFailed: false, | ||
var suite = { | ||
name: options.name || packageJson && packageJson.name, | ||
name: { | ||
plain: options.name || packageJson && packageJson.name, | ||
sanitized: sanitize(options.name || packageJson && packageJson.name, /[^a-z|0-9]/g) | ||
}, | ||
brandTitle: options.brandTitle, | ||
@@ -208,10 +217,2 @@ version: packageJson && packageJson.version, | ||
var sanitizeFileName = function (name) { | ||
var unsafeCharacters = /[\/\\\|:"\*\?<>]/g; | ||
name = name.trim(); | ||
name = name.replace(unsafeCharacters, ' '); | ||
name = name.split(' ').join('_'); | ||
return name; | ||
}; | ||
if (embedding.mime_type === 'text/plain') { | ||
@@ -237,3 +238,3 @@ if (!step.text) { | ||
var name = sanitizeFileName(step.name || step.keyword); | ||
var name = sanitize(step.name || step.keyword); | ||
if (!fs.existsSync(screenshotsDirectory)) { | ||
@@ -245,3 +246,2 @@ fs.mkdirSync(screenshotsDirectory); | ||
fs.writeFileSync(filename, embedding.data, 'base64'); | ||
step.image = filename; | ||
} | ||
@@ -248,0 +248,0 @@ } |
{ | ||
"name": "cucumber-html-reporter", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Generates Cucumber HTML reports in three different themes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -219,2 +219,3 @@ # cucumber-html-reporter | ||
**for Cucumber V1** | ||
```javascript | ||
@@ -224,6 +225,17 @@ | ||
return scenario.attach(new Buffer(buffer, 'base64'), 'image/png'); | ||
} | ||
}; | ||
``` | ||
**for Cucumber V2** | ||
```javascript | ||
var world = this; | ||
driver.takeScreenshot().then(function (buffer) { | ||
return world.attach(buffer, 'image/png'); | ||
}; | ||
``` | ||
#### Attach Plain Text to HTML report | ||
@@ -253,3 +265,3 @@ | ||
## Follow | ||
## For updates on the module | ||
@@ -256,0 +268,0 @@ [![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/g_kushang) |
@@ -55,2 +55,3 @@ 'use strict'; | ||
return { | ||
name: '@cucumber-html-reporter/*&!@#$%)(~<>`', //this tests for the sanitized hyperlinks on report, otherwise this should be plain text english | ||
theme: theme, | ||
@@ -57,0 +58,0 @@ output: path.join(outputDirectory, 'cucumber_report_' + theme + '.html'), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1949354
2385
287