cucumber-html-reporter
Advanced tools
Comparing version 5.4.0 to 5.5.0
@@ -189,2 +189,19 @@ 'use strict'; | ||
var parseScenarioHooks = function(data) { | ||
return data.map(step => { | ||
const match = step.match && step.match.location ? step.match : {location: 'can not be determined'}; | ||
if(step.embeddings == undefined){ | ||
return {} | ||
} | ||
return { | ||
arguments: step.arguments || [], | ||
result: step.result, | ||
match, | ||
embeddings: step.embeddings || [] | ||
} | ||
}) | ||
}; | ||
var setStats = function (suite) { | ||
@@ -222,2 +239,15 @@ var featureOutput = suite.features; | ||
if (feature.elements) { | ||
feature.elements.map(scenario => { | ||
const {before, after} = scenario; | ||
if (before) { | ||
scenario.steps = parseScenarioHooks(before).concat(scenario.steps); | ||
} | ||
if (after) { | ||
scenario.steps = scenario.steps.concat(parseScenarioHooks(after)); | ||
} | ||
}) | ||
} | ||
feature.elements.forEach(function (element) { | ||
@@ -224,0 +254,0 @@ element.passed = 0; |
{ | ||
"name": "cucumber-html-reporter", | ||
"version": "5.4.0", | ||
"version": "5.5.0", | ||
"description": "Generates Cucumber HTML reports in three different themes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1977352
2617