Open laurentsenta opened 7 years ago
:+1: running into the same issue and it makes it difficult to debug failing tests
This is helping me get at stack traces in tests
(ns stack-trace.api
(:require
clojure.string))
(defn print-phantom-trace
[trace]
(let [process-line (fn [s] (clojure.string/replace s #"file:.*generated_test_suite\.out" " ... "))]
(doseq [l (map process-line (clojure.string/split-lines trace))]
(prn l))))
(defn trace-pred
[pred]
(try
(when-not (pred)
(throw (js/Error. "fail")))
(catch js/Error e
(print-phantom-trace (.-stack e)))))
Hi again, I have another problem, using phantomjs:
With the same setup that in https://github.com/crisptrutski/boot-cljs-test/issues/58 but without
:js-env
option, I getHere's the output:
I rely a lot on core.async and async tests, could this be an issue? Thanks again for taking a look,