@@ -117,11 +117,6 @@ to work against the correct REPL session.")
117
117
" When theme is changed, update `cider-test-items-background-color' ."
118
118
(setq cider-test-items-background-color (cider-scale-background-color)))
119
119
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
-
125
120
; ;; Report mode & key bindings
126
121
; ;
127
122
; ; 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."
368
363
369
364
; ;; Report rendering
370
365
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
+
371
376
(defun cider-test-type-face (type )
372
377
" Return the font lock face for the test result TYPE."
373
378
(pcase type
@@ -382,7 +387,9 @@ With the actual value, the outermost '(not ...)' s-expression is removed."
382
387
`(:foreground ,(face-attribute face :background ))))
383
388
384
389
(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."
386
393
(with-current-buffer buffer
387
394
(nrepl-dbind-response summary (ns var test pass fail error )
388
395
(let ((ms (nrepl-dict-get elapsed-time " ms" )))
@@ -689,11 +696,6 @@ The selectors can be either keywords or strings."
689
696
(split-string
690
697
(cider-read-from-minibuffer message))))
691
698
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
-
697
699
(defun cider-test-execute (ns &optional tests silent prompt-for-filters )
698
700
" Run tests for NS, which may be a keyword, optionally specifying TESTS.
699
701
This tests a single NS, or multiple namespaces when using keywords `:project' ,
0 commit comments