(Update: threw out the original answer, this is what seems like a working solution.)
I took a sample project from your Gist and made the following changes:
rm tasks.clj
The following code has been added to project.clj below the defproject form:
(use '[bake.find-namespaces :only [find-namespaces-in-dir]] '[cake.tasks.test :only [test-opts]]) (undeftask test) (deftask test
Created a new test/cake_testing/core_test.clj with the following contents:
(ns cake-testing.core-test (:use clojure.test)) (deftest correct-stack-trace-depth? (is (= *stack-trace-depth* 5)))
Everything works at this point - cake test outputs
Testing cake-testing.core-test Ran 1 tests containing 1 assertions. 0 failures, 0 errors. ---- Finished in 0.033200374 seconds.
In addition, adding to the βtestβ that deliberately throws an exception results in a nice short stack trace being printed.
source share