clojure.test does not print ex-info in error reports
clojure.test does not print the data attached to ExceptionInfo in error reports.
Approach: In clojure.stacktrace, which clojure.test uses for printing exceptions, add a check for ex-data and pr it.
Screened by: Alex Miller
I don't think 1716 covers it at all as clojure.test/clojure.stacktrace don't use the new throwable printing. But they could! And that might be a better solution than the patch here.
For example, the existing patch does not consider what to do about nested exceptions, some of which might have ex-data. The new printer handles all that in a consistent way.
As pointed out on IRC, there's a possible risk of trying to print an infinite lazy sequence that happened to be included in ex-data.
To mitigate, consider binding print-length and print-level to small numbers around the call to pr.
Attaching sample output