File a ticket in JIRA with this example, thanks! David
On Sun, Apr 12, 2015 at 6:23 PM, Jenan Wise <[email protected]> wrote: > With the new async support (which is great!), cljs.test will report a > summary before all async tests are necessarily completed. E.g, if you have > a simple async test that looks like this: > > ``` > (deftest a-test > (async done > (testing "a slow async test" > (go > (<! (timeout 1000)) > (is (= 0 1)) > (done))))) > ``` > > then the report output may look like this: > > ``` > Ran 1 tests containing 0 assertions. > 0 failures, 0 errors. > > <1 second elapses> > > FAIL in () (cljs_test_with_slow_async_example/core_test.js:201:49) > expected: (= 0 1) > actual: (not (= 0 1)) > ``` > > Is this intentional? I can't quite tell from the discussion in CLJS-988. > There also doesn't seem to be a way to access the report result as a value > (which in clojure.test is returned from `run-tests`), which does appear to > be intentional? > > Here is a working minimal repo: > https://github.com/jenanwise/cljs-test-with-slow-async-example > > Thanks! > > -Jenan > > -- > 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. > -- 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.
