Hi Nikita,
Just FYI, your PR is in the queue, as it were. Thank you very much for
taking a whack at the problem.
- Chas
On Sat 18 Jan 2014 11:40:41 AM EST, Nikita Beloglazov wrote:
I've implemented my vision of async support in clojurescript.test. It doesn't depend on
core.async and works with any async operations like ajax or setTimeout. Basically it adds
2 functions: acquire-lock and release-lock that allow current test to "pause"
until some async operation is completed.
I tried to preserve same API compatibility. If async features are not used
everything should work as before. With async tests some features doesn't work
very well by design: fixtures, testing scopes and probably some other.
Here is pull request: https://github.com/cemerick/clojurescript.test/pull/36
I'd be happy to hear some feedback. Especially how to add async API to
clojurescript.test by preserving compatibility with classic clojure.test. I
couldn't think of something better than adding 2 functions for
locking/unlocking test execution.
Thank you,
Nikita
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.