diff --git a/shaker/resources/report_templates/interactive.html b/shaker/resources/report_templates/interactive.html index dd04bda..9382bc9 100644 --- a/shaker/resources/report_templates/interactive.html +++ b/shaker/resources/report_templates/interactive.html @@ -451,6 +451,13 @@ parseUrlToState(); console.log(state); + // change the status of tests that have sla failures + // to "fail", only if they were previously marked "ok" + $.each(report.sla, function(_i, sla) { + if (sla.state == "FAIL" && report.records[sla.record].status == "ok") { + report.records[sla.record].status = "fail"; + } + }); // pre-process records $.each(report.records, function(_i, record) { if (record.status) { @@ -458,6 +465,7 @@ record["is_status_lost"] = record.status == "lost"; record["is_status_interrupted"] = record.status == "interrupted"; record["is_status_error"] = record.status == "error"; + record["is_status_fail"] = record.status == "fail"; } }); @@ -545,6 +553,7 @@ {{#if is_status_lost}}lost{{/if}} {{#if is_status_interrupted}}interrupted{{/if}} {{#if is_status_error}}error{{/if}} + {{#if is_status_fail}}sla fail{{/if}} {{#if stats_yaml}}

Stats

{{ stats_yaml }}
@@ -639,6 +648,12 @@ error {{/if}} + {{#if is_status_fail }} + + + sla fail + + {{/if}} {{/records}}