iota icon indicating copy to clipboard operation
iota copied to clipboard

Improve error messages

Open danielcompton opened this issue 8 years ago • 0 comments

Currently the error messages returned by iota have gensyms and other internals which makes it harder to see the real test failure. For example:

clojure.test

expected: ["45"]
  actual: #{"15" "30" "45"}

iota

expected: (clojure.core/=
           ((juxt.iota/as-test-function
             [:body :keen.query/response :workspace/duration-ids])
            G__53963)
           #{"45"})
  actual: (not (clojure.core/= #{"15" "30" "45"} #{"45"}))

It might also be interesting to be able to show multiple failures for a single given in a single message, similar to https://github.com/facundoolano/restpect#test-reporter.

danielcompton avatar Sep 15 '17 03:09 danielcompton