untangled

NEW CHANNEL: #fulcro
2016-07-13T00:01:22.002127Z

if I add a newline character to a file inside untangled-client, it recompiles a bunch of files, then ends with

2016-07-13T00:01:24.002128Z

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

2016-07-13T00:03:04.002129Z

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 2016-07-13T03:21:16.002130Z

@juno: That looks like a bug. I will get that fixed. Feel free to add an issue.

a.espolov 2016-07-13T10:46:57.002131Z

Guys untangled template is ready?

juno 2016-07-13T13:32:47.002132Z

@mahinshaw: An issue has been filed https://github.com/untangled-web/untangled-websockets/issues/1 thank you

mahinshaw 2016-07-13T15:16:35.002134Z

@juno: Thanks for that. I will try and get a new release cut today with that fix.

juno 2016-07-13T15:17:18.002135Z

Awesome. Thank you.

2016-07-13T15:27:30.002136Z

@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

2016-07-13T15:31:21.002137Z

@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

2016-07-13T18:07:55.002138Z

@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

2016-07-13T18:08:24.002139Z

our union queries don’t seem to be working with advanced comp

2016-07-13T18:15:24.002142Z

thanks. I’ll be working on this very soon

2016-07-13T18:17:24.002143Z

@ethangracer: no I haven't played with the test renderer, is this for testing untangled-client lib?

2016-07-13T18:17:44.002144Z

@ethangracer: i'm trying to develop on untangled-client, so would be nice to know how to run tests

2016-07-13T18:18:49.002145Z

oh I did figure out the doo thing yesterday, lein doo chrome automated-tests so I guess that only leaves the "tests" build

2016-07-13T18:18:55.002146Z

that I'm not sure how to run

2016-07-13T18:19:18.002147Z

@ethangracer: are there any docs on "test renderer"

2016-07-13T18:19:27.002148Z

not sure if there are docs

2016-07-13T18:19:40.002149Z

if you pull down todomvc you can take a look at the implementation for the test build

2016-07-13T18:20:19.002150Z

basically you use script/figwheel.clj with the java parameter -Dtest, where test is the test build defined in the project file

2016-07-13T18:20:45.002151Z

you have to make a test.html page in your resources path with a div that the test build will mount to

2016-07-13T18:21:37.002152Z

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

2016-07-13T18:21:49.002153Z

when your tests fail, the page updates, and shows diffs

2016-07-13T18:22:39.002154Z

@jasonjckn you can see it in action during the promo video: https://youtu.be/CoMyszwN50g

2016-07-13T18:23:08.002156Z

oh yah, i've seen that 🙂

tony.kay 2016-07-13T19:59:12.002157Z

0.2.2 websockets pushed to clojars

2016-07-13T21:46:07.002158Z

tony: how do I run tests for untangled-client, lein doo chrome automated-tests does that cover all the unit tests?

tony.kay 2016-07-13T21:47:11.002159Z

that should cover all of the tests, yes

tony.kay 2016-07-13T21:47:21.002160Z

recognize that doo counts things differently than figwheel

2016-07-13T21:47:21.002161Z

and how do I build a release?

2016-07-13T21:47:38.002162Z

lein jar?

tony.kay 2016-07-13T21:47:46.002163Z

we mostly run tests through browser and figwheel

tony.kay 2016-07-13T21:48:35.002164Z

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

2016-07-13T21:48:50.002165Z

k

tony.kay 2016-07-13T21:50:28.002167Z

requires the localrepo plugin in your .lein user profile

2016-07-13T21:51:02.002168Z

i think that's equivalent to lein install

2016-07-13T21:51:07.002169Z

thanks for the command though

tony.kay 2016-07-13T22:03:11.002170Z

install doesn't get the deps right

tony.kay 2016-07-13T22:03:20.002171Z

you have to generate a pom