From 855035621476d293033bb3cedb622e2c714060a1 Mon Sep 17 00:00:00 2001 From: erwintj Date: Fri, 16 Feb 2018 10:28:05 -0500 Subject: [PATCH 1/2] clear results + failures in between watch mode runs --- lib/reporter.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/reporter.js b/lib/reporter.js index 05ec29c..c2bdd3b 100644 --- a/lib/reporter.js +++ b/lib/reporter.js @@ -295,8 +295,10 @@ class SpecReporter extends events.EventEmitter { output += `${preface}\n` output += this.getResultList(cid, spec.suites, preface) output += `${preface}\n` - output += this.getSummary(this.results[cid], spec._duration, preface) - output += this.getFailureList(failures, preface) + output += this.getSummary(this.results[cid], spec._duration, preface); + this.results[cid] = { passing: 0, pending: 0, failing: 0 }; + output += this.getFailureList(failures, preface); + stats.failures = []; output += this.getJobLink(results, preface) output += `${preface}\n` return output From 50bd0d5f643490bd12c5cb0bddd76b8a867c2678 Mon Sep 17 00:00:00 2001 From: erwintj Date: Fri, 16 Feb 2018 10:31:58 -0500 Subject: [PATCH 2/2] Removed semicolons --- lib/reporter.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/reporter.js b/lib/reporter.js index c2bdd3b..18ec8b8 100644 --- a/lib/reporter.js +++ b/lib/reporter.js @@ -295,10 +295,10 @@ class SpecReporter extends events.EventEmitter { output += `${preface}\n` output += this.getResultList(cid, spec.suites, preface) output += `${preface}\n` - output += this.getSummary(this.results[cid], spec._duration, preface); - this.results[cid] = { passing: 0, pending: 0, failing: 0 }; - output += this.getFailureList(failures, preface); - stats.failures = []; + output += this.getSummary(this.results[cid], spec._duration, preface) + this.results[cid] = { passing: 0, pending: 0, failing: 0 } + output += this.getFailureList(failures, preface) + stats.failures = [] output += this.getJobLink(results, preface) output += `${preface}\n` return output