bensu / doo

doo is a library and lein plugin to run cljs.test on different js environments.
Eclipse Public License 1.0
324 stars 63 forks source link

doo crashes with Clojure 1.9 #159

Closed Jarzka closed 6 years ago

Jarzka commented 6 years ago

I noticed a problem when running frontend tests on my stylefy project: https://github.com/Jarzka/stylefy

Clone the project and run the tests: lein do clean, doo phantom test => Tests are successful.

However, if you change Clojure version to 1.9.0 and run the tests again: lein do clean, doo phantom test you get:

TypeError: undefined is not an object (evaluating 'cljs.test.report')

We are also using doo in Finnish Transport Agency's massive Harja project (https://github.com/finnishtransportagency/harja). We are unable to upgrade to Clojure 1.9 because of the same doo crash. :)

Jarzka commented 6 years ago

I was able to run the tests by upgrading both Clojure (1.9) and ClojureScript (1.9.946).

A warning is still printed though:

WARNING: doo's init function was not set

object[TypeError TypeError: undefined is not an object (evaluating 'process_exit.call')]

TypeError: undefined is not an object (evaluating 'process_exit.call')

And a lot of errors are produced when compiling the project with lein cljsbuild once prod

Jarzka commented 6 years ago

After upgrading cljs-build I was able to successfully compile production build and run tests with doo.

bensu commented 6 years ago

Thanks for the report!