Back
*stack-trace-depth* (clj)
(source)variable
The maximum depth of stack traces to print when an Exception
is thrown during a test. Defaults to nil, which means print the
complete stack trace.
Examples
athensresearch/athens
(ns athens.bfs-test
(:require
[athens.common-db :as common-db]
[athens.common-events.bfs :as bfs]
[clojure.test :refer [deftest is] :as t]
[datascript.core :as d]))
(comment
(binding [t/*stack-trace-depth* 5] (t/run-tests))
reborg/clojure-essential-reference
(require '[clojure.test :refer [is deftest] :as t])
(binding [t/*stack-trace-depth* 3] ; <4>
(t/test-var #'sqrt-test)) ; <5>