@@ -117,11 +117,6 @@ to work against the correct REPL session.")
117117 " When theme is changed, update `cider-test-items-background-color' ."
118118 (setq cider-test-items-background-color (cider-scale-background-color)))
119119
120- (defun cider-test-toggle-fail-fast ()
121- " Toggles `cider-test-fail-fast' t <-> nil for the current buffer."
122- (interactive )
123- (setq-local cider-test-fail-fast (not cider-test-fail-fast)))
124-
125120; ;; Report mode & key bindings
126121; ;
127122; ; The primary mode of interacting with test results is the report buffer, which
@@ -368,6 +363,16 @@ With the actual value, the outermost '(not ...)' s-expression is removed."
368363
369364; ;; Report rendering
370365
366+ (defcustom cider-test-fail-fast t
367+ " Controls whether to stop a test run on failure/error."
368+ :type 'boolean
369+ :package-version '(cider . " 1.8.0" ))
370+
371+ (defun cider-test-toggle-fail-fast ()
372+ " Toggles `cider-test-fail-fast' t <-> nil for the current buffer."
373+ (interactive )
374+ (setq-local cider-test-fail-fast (not cider-test-fail-fast)))
375+
371376(defun cider-test-type-face (type )
372377 " Return the font lock face for the test result TYPE."
373378 (pcase type
@@ -382,7 +387,9 @@ With the actual value, the outermost '(not ...)' s-expression is removed."
382387 `(:foreground ,(face-attribute face :background ))))
383388
384389(defun cider-test-render-summary (buffer summary &optional elapsed-time )
385- " Emit into BUFFER the report SUMMARY statistics."
390+ " Emit into BUFFER the report SUMMARY statistics.
391+
392+ If ELAPSED-TIME is provided it will be included in the summary."
386393 (with-current-buffer buffer
387394 (nrepl-dbind-response summary (ns var test pass fail error )
388395 (let ((ms (nrepl-dict-get elapsed-time " ms" )))
@@ -689,11 +696,6 @@ The selectors can be either keywords or strings."
689696 (split-string
690697 (cider-read-from-minibuffer message))))
691698
692- (defcustom cider-test-fail-fast t
693- " Controls whether to stop a test run on failure/error."
694- :type 'boolean
695- :package-version '(cider . " 1.8.0" ))
696-
697699(defun cider-test-execute (ns &optional tests silent prompt-for-filters )
698700 " Run tests for NS, which may be a keyword, optionally specifying TESTS.
699701This tests a single NS, or multiple namespaces when using keywords `:project' ,
0 commit comments