cucumber-html-reporter
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -0,1 +1,7 @@ | ||
### 4.0.3 (Feb-21-2019) | ||
* Enable non-inlined screenshots . Fix for [Issue#145](https://github.com/gkushang/cucumber-html-reporter/issues/145) - [PR#166](https://github.com/gkushang/cucumber-html-reporter/pull/166) | ||
### 4.0.4 | ||
### 4.0.3 (Aug-23-2018) | ||
@@ -2,0 +8,0 @@ |
@@ -272,3 +272,3 @@ 'use strict'; | ||
var name = sanitize(step.name || step.keyword); | ||
var name = sanitize(step.name || step.keyword, /[^a-zA-Z0-9/-]+/g); // Only allow URL-friendly file names | ||
if (!fs.existsSync(screenshotsDirectory)) { | ||
@@ -280,2 +280,3 @@ fs.mkdirSync(screenshotsDirectory); | ||
fs.writeFileSync(filename, embedding.data, 'base64'); | ||
if (options.noInlineScreenshots) step.image = path.relative(path.join(options.output, '..'), filename); | ||
} | ||
@@ -282,0 +283,0 @@ } else { |
{ | ||
"name": "cucumber-html-reporter", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "Generates Cucumber HTML reports in three different themes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -204,2 +204,10 @@ # cucumber-html-reporter | ||
#### `noInlineScreenshots` | ||
Type: `Boolean` | ||
Default: `undefined` | ||
`true`: Applicable if `storeScreenshots=true`. Avoids inlining screenshots, uses relative path to screenshots instead (i.e. enables lazy loading of images). | ||
`false` or `undefined`: Keeps screenshots inlined. | ||
#### `metadata` | ||
@@ -206,0 +214,0 @@ Type: `JSON` (optional) |
Sorry, the diff of this file is not supported yet
1980067
2480
307