You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clj-assorted-util does not provide an implementation of the 3-arity method of java.io.StringWriter. Any tests which cause warnings to be printed by the clojure compiler at runtime might cause test2junit to fail.
thanks a lot for spotting the issue and for the excellent investigation and documentation!
I already replied to the pull request regarding clj-assorted-utils separately.
I merged your changes to clj-assorted-utils and uploaded a new version.
Based on the new clj-assorted-utils version, I also uploaded a new test2junit version (1.3.3).
Is it fine for you if I include your test case [...] in the test2junit unit tests?
Absolutely!
The new test2junit version (1.3.3) does fix this issue.
Thank you!
I have noticed one thing. Possibly unrelated.
For the following test:
(deftestintentionally-failing-test
(testing"all things"
(prn"Bwahaha!")
(isfalse)
(prn"A test just failed.")))
I see this in my test report:
Standard Output
34661199710497104973334
3465321161011151163210611711511632102971051081011004634
Which I believe is just the ASCII character codes:
user> (map #(apply str (map int %))
[(pr-str"Bwahaha")
(pr-str"A test just failed.")])
;; => ("346611997104971049734""3465321161011151163210611711511632102971051081011004634")
I have not yet had time to investigate further. I am not familiar with JUnit; maybe there's some configuration I need to adjust. If anyone has suggestions as to where to begin my search, I'm happy to follow through on this.
clj-assorted-util does not provide an implementation of the 3-arity method of java.io.StringWriter. Any tests which cause warnings to be printed by the clojure compiler at runtime might cause test2junit to fail.
example error output
As produced by sample project:
The text was updated successfully, but these errors were encountered: