Skip to content

Commit d5aca16

Browse files
Avi Flaxseancorfield
andcommitted
Fix failing test
I discovered this failing test in master when I tried to test a feature branch in my fork for regressions. Fix was provided by @seancorfield in #testing on https://clojurians.slack.com/ Co-authored-by: Sean Corfield <sean@corfield.org>
1 parent 6f839ae commit d5aca16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eftest/test/eftest/report_test.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@
2727
(sut/run-tests {:report (report/report-to-file junit/report "target/test-out/junit.xml")}))
2828
(is (string? (slurp "target/test-out/junit.xml"))))
2929

30+
(def this-ns *ns*)
31+
3032
(deftest file-and-line-in-pretty-fail-report
3133
(let [pretty-nil (puget/pprint-str nil {:print-color true
3234
:print-meta false})
3335
result (with-out-str
3436
(binding [*test-out* *out*
3537
pretty/*fonts* {}
38+
report/*testing-path* [this-ns #'file-and-line-in-pretty-fail-report]
3639
*report-counters* (ref *initial-report-counters*)]
3740
(output-capture/with-test-buffer
3841
(pretty/report {:type :fail

0 commit comments

Comments
 (0)