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
@juno: That looks like a bug. I will get that fixed. Feel free to add an issue.
Guys untangled template is ready?
@mahinshaw: An issue has been filed https://github.com/untangled-web/untangled-websockets/issues/1 thank you
@juno: Thanks for that. I will try and get a new release cut today with that fix.
Awesome. 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
that I'm not sure how to run
@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
oh yah, i've seen that 🙂
0.2.2 websockets pushed to clojars
tony: how do I run tests for untangled-client, lein doo chrome automated-tests
does that cover all the unit tests?
that should cover all of the tests, yes
recognize that doo counts things differently than figwheel
and how do I build a release?
lein jar?
we mostly run tests through browser and figwheel
yeah, lein jar should do it...I always deploy it to clojars with lien deploy clojars
or use checkouts...or use the lein localrepo plugin to install it in local maven repo
k
requires the localrepo plugin in your .lein user profile
i think that's equivalent to lein install
thanks for the command though
install doesn't get the deps right
you have to generate a pom