summaryrefslogtreecommitdiff
path: root/cider-test.el
diff options
context:
space:
mode:
authorFabricationatorishnicatorist <Fabricationatorishnicatorist@users.noreply.github.com>2015-11-10 16:30:53 +0200
committerFabricationatorishnicatorist <Fabricationatorishnicatorist@users.noreply.github.com>2015-11-10 16:42:10 +0200
commit47a899d713f250e54e7dbfda1bd6b406f4a63021 (patch)
treeedc5f4d65f0b3967409a3c9b17655225361af84e /cider-test.el
parent6c5eea67dfd99a5f09a78fb19cc336571e3d8091 (diff)
[Fix #1405] Always update test-report but pop buffer only as appropriate
PR #1402 ensures the report buffer always reflects the latest results but we shouldn't pop buffer on green unless the user asks for it with cider-test-show-report-on-success
Diffstat (limited to 'cider-test.el')
-rw-r--r--cider-test.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/cider-test.el b/cider-test.el
index 18744831..88179624 100644
--- a/cider-test.el
+++ b/cider-test.el
@@ -457,8 +457,11 @@ displayed. When test failures/errors occur, their sources are highlighted."
cider-auto-select-test-report-buffer)
ns summary results)
(when (get-buffer cider-test-report-buffer)
+ (with-current-buffer cider-test-report-buffer
+ (let ((inhibit-read-only t))
+ (erase-buffer)))
(cider-test-render-report
- (cider-popup-buffer cider-test-report-buffer)
+ cider-test-report-buffer
ns summary results))))))))))
(defun cider-test-rerun-tests ()