diff options
author | Fabricationatorishnicatorist <Fabricationatorishnicatorist@users.noreply.github.com> | 2015-11-10 16:30:53 +0200 |
---|---|---|
committer | Fabricationatorishnicatorist <Fabricationatorishnicatorist@users.noreply.github.com> | 2015-11-10 16:42:10 +0200 |
commit | 47a899d713f250e54e7dbfda1bd6b406f4a63021 (patch) | |
tree | edc5f4d65f0b3967409a3c9b17655225361af84e /cider-test.el | |
parent | 6c5eea67dfd99a5f09a78fb19cc336571e3d8091 (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.el | 5 |
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 () |