diff options
author | Jeff Valk <jv@jeffvalk.com> | 2016-02-04 07:56:21 -0500 |
---|---|---|
committer | Jeff Valk <jv@jeffvalk.com> | 2016-02-04 07:56:21 -0500 |
commit | d81e2acee352f97aa030c0e16be5204bd0e502d8 (patch) | |
tree | 74565e6d0f1b5b2ca6c6bbf5d1f6bbac4d68d0f7 /cider-test.el | |
parent | a209d7a2425a0eb20d916e868d9d6d94e7d765b8 (diff) |
Prompt to offer rerun of failed/erring tests
Test report buffer does not currently have the concept of a namespace
context. When the user tries to run current namespace tests, prompt for
what is likely intended.
Diffstat (limited to 'cider-test.el')
-rw-r--r-- | cider-test.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cider-test.el b/cider-test.el index 2c2f6c8a..2bd4b66a 100644 --- a/cider-test.el +++ b/cider-test.el @@ -574,7 +574,9 @@ current ns." (funcall cider-test-infer-test-ns (clojure-find-ns))))) (cider-test-execute ns) (if (eq major-mode 'cider-test-report-mode) - (message "Test report does not define a namespace. Did you mean retest?") + (when (y-or-n-p (concat "Test report does not define a namespace. " + "Rerun failed/erring tests?")) + (cider-test-rerun-tests)) (message "No namespace to test in current context")))) (defun cider-test-run-test () |