Closed ayato-p closed 7 years ago
I like the patch, but rather than :serialize
, perhaps :eftest/synchronized
would be a better keyword to use.
Thank you for your feedback ! PR updated :)
Updated. Thank you 🙇
Released as version 0.1.2. Thanks for the patch!
Hi.
I'm fixing a multithread issue in this PR. This PR makes test vars in multithread testing accept
:serialize
meta data Like this.I'll explain the problem that I encountered.
I have the folloing functions:
Which for testing I would like to redefine
inner-fn
for testing.with-redefs
is a popular solution for redefinition/mocking in Clojure, I guess.Running tests with
clojure.test/run-tests
is working.However, running tests with
eftest.runner/run-tests
does not work. (Ofcourse, with:multithred? false
option it works, but not fast)My PR version's
eftest.runner/run-tests
is works and is still faster thenclojure.test/run-tests
.