Skip to content

Commit aa6af18

Browse files
author
Hilscher, Robert
committed
Fix for scenarios checking if passed
1 parent 3c07fd6 commit aa6af18

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

lib/html_formatter.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,13 @@ module.exports = (function() {
155155
passedSteps++;
156156
}
157157
}
158-
}
159-
160-
if (isPassed) {
161-
passedScenarios++;
162-
}
163158

164-
if (element.type === 'scenario') {
159+
if (isPassed) {
160+
passedScenarios++;
161+
}
165162
html += getScenario(element, isPassed);
163+
html += stepsHtml;
166164
}
167-
html += stepsHtml;
168165
}
169166
}
170167
header = getHeader(scenariosNumber, passedScenarios, stepsNumber, passedSteps);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-protractor-cucumber-html-report",
33
"description": "Generate html report from JSON file returned by cucumber-js json formatter",
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"homepage": "https://github.com/robhil/grunt-protractor-cucumber-html-report",
66
"author": {
77
"name": "Hilscher, Robert",

0 commit comments

Comments
 (0)