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

Source maps for stack traces? #42

Open danielcompton opened 8 years ago

danielcompton commented 8 years ago

Is it possible to get stack traces for errors from Karma?

At the moment they look like this:

Chrome 46.0.2490 (Mac OS X 10.11.0) bigco.base.util-test fail FAILED
    Fail (fail) (cljs/test.js:417:14)
    Expected (= 1 2)
    Actual: (not (= 1 2))

I'm not sure if this is related or not, but when I open the Karma Debug page, I get a bunch of warnings in the doo terminal about 404 for source map files, e.g.:

19 10 2015 08:24:30.989:WARN [web-server]: 404: /base/out/cljs_time/format.js.map
bensu commented 8 years ago

I'm pretty sure I can solve the 404 warnings. I don't know about getting source-mapped stack traces but it is definitely in the road map so I'll get back when I have some time to investigate/implement this.

I suspect it is doable in Karma but harder in the other runners (specially Phantom/Slimer).

danielcompton commented 8 years ago

No problem. Thanks for your work on this, it's really great.