cemerick/clojurescript.test — pull request #36 by nbeloglazov (2014-01-18 16:25:13+00:00)
Title: Proof of concept: async test

Here is my try to bring async feature to clojurescript.test. It's not bound to `core.async`, it's actually orthogonal to it. Two functions are added in order to support async tests:

`acquire-lock` - creates and returns lock in current test. Test won't finish until lock is released. Lock can be released as result of async operation like ajax request or `setTimeout`.

`release-lock` - releases given lock. Basically it means that test has finished and framework can move to executing next test if any.

Several locks can be acquired in same test and test won't be marked as finished until all of them are released.

Using of `acquire-lock` and `release-lock` is optional.

Unfortunately some features doesn't work if async style is used because of initial design of `clojurescript.test`. All fixtures supports only sync tests by design. Also `testing` macro may work counter intuitive in some cases because it uses dynamic binding.

[Examples of async tests](https://github.com/nbeloglazov/clojurescript.test/blob/async-tests/test/cemerick/cljs/test/async.cljs)

Async test issue thread: #34.