File tree Expand file tree Collapse file tree 4 files changed +2
-8
lines changed
clj/cider/nrepl/middleware Expand file tree Collapse file tree 4 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 79
79
:test {:source-paths [" test/src" ]
80
80
:java-source-paths [" test/java" ]
81
81
:resource-paths [" test/resources" ]
82
- :dependencies [[cider/piggieback " 0.3.10 " ]]}
82
+ :dependencies [[cider/piggieback " 0.4.0 " ]]}
83
83
84
84
; ; Need ^:repl because of: https://github.com/technomancy/leiningen/issues/2132
85
85
:repl ^:repl [:test
Original file line number Diff line number Diff line change 79
79
(is (= " class java.lang.IllegalArgumentException"
80
80
(:ex exception-response))))
81
81
82
- ; ;TODO: The :err slot is missing when running this through the Cider test-runner
83
82
(testing " exprs that throw exceptions return an `err` slot"
84
83
(is (.contains (:err exception-response)
85
84
" IllegalArgumentException" )))))
Original file line number Diff line number Diff line change 85
85
86
86
(testing " exprs that throw exceptions return an `ex` slot"
87
87
(is (= " class clojure.lang.ExceptionInfo"
88
- (:ex exception-response))))
89
-
90
- ; ;TODO: The :err slot is missing when running this through the Cider test-runner
91
- (testing " exprs that throw exceptions return an `err` slot"
92
- (is (re-find #"1 is not ISeqable" (:err exception-response))))))
88
+ (:ex exception-response))))))
93
89
94
90
(testing " inspect-pop error handling"
95
91
(with-redefs [i/swap-inspector! (fn [& _] (throw (Exception. " pop exception" )))]
Original file line number Diff line number Diff line change 52
52
(is (= " class clojure.lang.ExceptionInfo"
53
53
(:ex response)
54
54
(:root-ex response)))
55
- (is (string? (:err response)))
56
55
(is (= #{" eval-error" " done" } (:status response))))))
You can’t perform that action at this time.
0 commit comments