This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-13
Channels
- # admin-announcements (4)
- # beginners (14)
- # boot (41)
- # capetown (1)
- # carry (10)
- # clojure (168)
- # clojure-czech (11)
- # clojure-mexico (3)
- # clojure-quebec (1)
- # clojure-russia (63)
- # clojure-spec (108)
- # clojure-uk (44)
- # clojurescript (37)
- # component (5)
- # data-science (2)
- # datascript (5)
- # datomic (3)
- # defnpodcast (9)
- # dirac (14)
- # emacs (18)
- # events (1)
- # funcool (2)
- # garden (2)
- # hoplon (48)
- # leiningen (6)
- # numerical-computing (1)
- # off-topic (8)
- # om (61)
- # onyx (22)
- # proton (14)
- # re-frame (50)
- # reagent (2)
- # uncomplicate (1)
- # untangled (41)
- # vim (5)
- # yada (5)
if I add a newline character to a file inside untangled-client, it recompiles a bunch of files, then ends with
Copying file:/Users/jason/d/untangled-client/src/untangled/client/impl/application.cljs to resources/public/js/test/out/untangled/client/impl/application.cljs
... done. Elapsed 4.128726084 seconds
;; ======================================================================
;; Testing with Chrome:
[doo] Started karma run
12 07 2016 16:58:28.038:WARN [web-server]: 404: /js/test/out/cljs_deps.js
Chrome 51.0.2704 (Mac OS X 10.11.4) INFO: 'Installing cljs-devtools: %c%s %c%s %c%s', 'color:#0000ff', 'custom-formatters', 'color:#aaaaaa', 'dirac', 'color:#0000ff', 'sanity-hints'
Chrome 51.0.2704 (Mac OS X 10.11.4) ERROR
Uncaught TypeError: Cannot read property 'call' of null
at /Users/jason/d/untangled-client/resources/public/js/test/out/om/next.js:4159
lein doo firefox test
gives me the output [doo] Started karma run
12 07 2016 17:02:24.868:WARN [web-server]: 404: /js/test/out/cljs_deps.js
Firefox 47.0.0 (Mac OS X 10.11.0) INFO: 'Installing cljs-devtools: %c%s %c%s %c%s', 'color:#0000ff', 'custom-formatters', 'color:#aaaaaa', 'dirac', 'color:#0000ff', 'sanity-hints'
Firefox 47.0.0 (Mac OS X 10.11.0) WARN: 'Feature 'custom-formatters' cannot be installed. Unsupported browser Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0.'
Firefox 47.0.0 (Mac OS X 10.11.0) ERROR
ReferenceError: doo is not defined
at /Users/jason/d/untangled-client/node_modules/karma-cljs-test/adapter.js line 6 > eval:1
@mahinshaw: An issue has been filed https://github.com/untangled-web/untangled-websockets/issues/1 thank you
@a.espolov: to my knowledge, no it isn’t. the best 2 options are to (1) clone todomvc and delete the code, or (2) make a new untangled cookbook recipe and copy the recipe directory out of the project
@jasonjckn: not sure what you’re running into but I have a vague recollection that lein doo has some stricter dependency requirements — might want to look into that. Have you played at all with the test renderer? If not, you definitely should
@therabidbanana @currentoor were you guys seeing some advanced compilation bugs with the new initial-state functions? I have a vague memory of reading some messages about it
our union queries don’t seem to be working with advanced comp
thanks. I’ll be working on this very soon
@ethangracer: no I haven't played with the test renderer, is this for testing untangled-client lib?
@ethangracer: i'm trying to develop on untangled-client, so would be nice to know how to run tests
oh I did figure out the doo thing yesterday, lein doo chrome automated-tests
so I guess that only leaves the "tests" build
@ethangracer: are there any docs on "test renderer"
not sure if there are docs
if you pull down todomvc you can take a look at the implementation for the test build
basically you use script/figwheel.clj
with the java parameter -Dtest
, where test
is the test build defined in the project file
you have to make a test.html page in your resources path with a div that the test build will mount to
so, in sum, you run -Ddev -Dtest
so that your root url has your app, and root-url/test.html
renders the tests to a web page
when your tests fail, the page updates, and shows diffs
@jasonjckn you can see it in action during the promo video: https://youtu.be/CoMyszwN50g
tony: how do I run tests for untangled-client, lein doo chrome automated-tests
does that cover all the unit tests?