Skip to content

Commit 389d910

Browse files
author
Hilscher, Robert
committed
add new report template
1 parent aa6af18 commit 389d910

22 files changed

+3641
-431
lines changed

assets/example_test_result.json

Lines changed: 5 additions & 66 deletions
Large diffs are not rendered by default.

lib/html_formatter.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ module.exports = (function() {
136136
step;
137137

138138
for (var i = 0; i < testResults.length; i++) {
139-
isPassed = true;
139+
140140
html = '';
141141
html += getFeature(testResults[i]);
142142

@@ -145,6 +145,7 @@ module.exports = (function() {
145145
if (element.type === 'scenario') {
146146
scenariosNumber++;
147147
stepsHtml = '';
148+
isPassed = true;
148149
for (var k = 0; k < testResults[i].elements[j].steps.length; k++) {
149150
step = testResults[i].elements[j].steps[k];
150151
stepsHtml += getStep(step);
@@ -159,8 +160,8 @@ module.exports = (function() {
159160
if (isPassed) {
160161
passedScenarios++;
161162
}
162-
html += getScenario(element, isPassed);
163-
html += stepsHtml;
163+
html += '<div class="scenario-container">' + getScenario(element, isPassed);
164+
html += stepsHtml + '</div>';
164165
}
165166
}
166167
}

templates/assets/css/bootstrap/css/bootstrap.min.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

templates/assets/css/bootstrap/fonts/glyphicons-halflings-regular.svg

Lines changed: 288 additions & 0 deletions
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)