cemerick / clojurescript.test

A maximal port of `clojure.test` to ClojureScript. DEPRECATED
165 stars 32 forks source link

Difference in test output between 0.2.3 and 0.3.0? #61

Closed cichli closed 9 years ago

cichli commented 10 years ago

Hi,

There's a difference in the output of performing lein cljsbuild test between 0.2.3 and 0.3.0 (and later). 0.2.3 gives the following:

Running ClojureScript test: unit tests

Testing cljstest.core

Ran 1 tests containing 1 assertions.
0 failures, 0 errors.
{:test 1, :pass 1, :fail 0, :error 0, :type :summary}

But with 0.3.0, it's like so:

Running ClojureScript test: unit tests

Testing cljstest.core 

Ran 1 tests containing 1 assertions.
Testing complete: 0 failures, 0 errors.

Ran 1 tests containing 1 assertions.
Testing complete: 0 failures, 0 errors.

Is the duplicated output intended? AFAICT the two messages are always exactly the same. Let me know if you want me to upload an example repo or detail the steps to replicate (not much more than doing a lein new mies test-project and then doing the bare minimum to get tests up and running).

Thanks

cemerick commented 10 years ago

The duplicate result printout is due to the bifurcation of synchronous and asynchronous tests that are performed. The latter's results are always printed second, but IIRC it is done even if no asynchronous tests were scheduled. Happy to take a PR that checks for this before printing the async summary.