Skip to content

Commit 61bf32d

Browse files
author
Marc Rooding
committed
Fixed an issue where only the last feature would be shown with a list of ALL scenario's
1 parent 704208e commit 61bf32d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

lib/html_formatter.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ module.exports = (function () {
6969
* @returns {*}
7070
*/
7171
function getFeature(feature, scenariosNumberInFeature, passedScenariosNumberInFeature, stepsNumberInFeature, passedStepsInFeature) {
72-
7372
var template = fs.readFileSync(templates.featureTemplate),
7473
compiled = lodashTemplate(template.toString());
7574

@@ -128,13 +127,12 @@ module.exports = (function () {
128127
passedScenariosNumberInFeature = 0,
129128
stepsNumberInFeature = 0,
130129
passedStepsInFeature = 0,
131-
scenariosHtml = '',
132130
element,
131+
html = '',
133132
step;
134133

135134
for (var i = 0; i < testResults.length; i++) {
136-
137-
html = '';
135+
scenariosHtml = '';
138136
scenariosNumberInFeature = 0;
139137
passedScenariosNumberInFeature = 0;
140138
stepsNumberInFeature = 0;

templates/assets/css/style.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,21 +133,20 @@ header h1 {
133133
}
134134

135135
.feature {
136-
margin-left: 15px;
137-
margin-bottom: 30px;
136+
margin: 30px 0 30px 15px;
138137
background: #E8F5E9;
139138
clear: both;
140139
padding: 15px;
141140
overflow: auto;
142141
height: 102px;
143-
144142
}
145143

146144
.feature-container {
147145
margin-top: 60px;
148146
}
149147

150148
.feature-statistics {
149+
margin: 30px 0;
151150
}
152151

153152

0 commit comments

Comments
 (0)