Features overview

<% _.each(suite.features[0].metadata, function(metadatum, metadatumIndex) { %> <%});%> <% if (suite.displayDuration) { %> <% } %> <% if(+suite.scenarios.skipped > 0) { %> <% } %> <% if(+suite.scenarios.pending > 0) { %> <% } %> <% if(+suite.scenarios.notDefined > 0) { %> <% } %> <% if(+suite.scenarios.ambiguous > 0) { %> <% } %> <% _.each(suite.features, function(feature, featureIndex) { %> <% _.each(feature.metadata, function(metadatum, metadatumIndex) { %> <% }); %> <% if (suite.displayDuration) { %> <% } %> <% if(+suite.scenarios.skipped > 0) { %> <% } %> <% if(+suite.scenarios.pending > 0) { %> <% } %> <% if(+suite.scenarios.notDefined > 0) { %> <% } %> <% if(+suite.scenarios.ambiguous > 0) { %> <% } %> <% }); %>
Feature name Status<%= metadatum.name %>DurationTotal Passed FailedSkipPendingUndefinedAmbiguous
<%= feature.name %> <% if (feature.tags) { %> <% var amount = feature.tags.length; %> <% var tags = _.reduce(feature.tags, (tags, tag) => tags + tag.name + ' ', ''); %> <% if (amount > 0 ){ %> <%= tags.trim() %> <% } %> <% } %> <% var statusIcon; %> <% var status; %> <% if (feature.isFailed) { %> <% status = 'Failed'; %> <% statusIcon = 'exclamation-circle failed-color'; %> <% } else if (feature.isAmbiguous) { %> <% status = 'Ambiguous'; %> <% statusIcon = 'flash ambiguous-color'; %> <% } else if (feature.isNotdefined) { %> <% status = 'Not Defined'; %> <% statusIcon = 'question-circle not-defined-color'; %> <% } else if (feature.isPending) { %> <% status = 'Pending'; %> <% statusIcon = 'minus-circle pending-color'; %> <% } else if (feature.isSkipped) { %> <% status = 'Skipped'; %> <% statusIcon = 'arrow-circle-right skipped-color'; %> <% } else { %> <% status = 'Passed'; %> <% statusIcon = 'check-circle passed-color'; %> <% } %> <%= statusIcon %> <%=metadatum.value%> <%= feature.time %><%= feature.scenarios.total %> <%= feature.scenarios.passed %> <%= feature.scenarios.failed %><%= feature.scenarios.skipped %><%= feature.scenarios.pending %><%= feature.scenarios.notDefined %><%= feature.scenarios.ambiguous %>