Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing context not displayed in test output #15

Closed
Dexterminator opened this issue Aug 29, 2017 · 2 comments
Closed

testing context not displayed in test output #15

Dexterminator opened this issue Aug 29, 2017 · 2 comments

Comments

@Dexterminator
Copy link

Dexterminator commented Aug 29, 2017

It seems like only the cljs.test/testing-vars-str is used in:

(defn- format-log [{:keys [expected actual message] :as result}]
(let [indentation (count "expected: ")]
(str
"FAIL in " (cljs.test/testing-vars-str result) "\n"
(if (and (seq? expected)
(seq? actual))
(str
"expected: " (format-fn indentation expected) "\n"
" actual: " (format-fn indentation (second actual)) "\n"
(when-let [diff (format-diff indentation expected (second actual))]
(str " diff: " diff "\n")))
(str
expected " failed with " actual "\n"))
(when message
(str " message: " (indent indentation message) "\n")))))

The cljs.test/testing-contexts-str should be displayed as well in order to get any value from using the (testing) macro.

@honzabrecka
Copy link
Owner

Would you mind to send PR?

@Dexterminator
Copy link
Author

Will do when I find the time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants