Fork me on GitHub
#untangled
<
2016-07-13
>
jasonjckn00:07:22

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

jasonjckn00:07:24

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

jasonjckn00:07:04

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

mahinshaw03:07:16

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

a.espolov10:07:57

Guys untangled template is ready?

mahinshaw15:07:35

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

juno15:07:18

Awesome. Thank you.

ethangracer15:07:30

@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

ethangracer15:07:21

@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

ethangracer18:07:55

@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

ethangracer18:07:24

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

ethangracer18:07:24

thanks. I’ll be working on this very soon

jasonjckn18:07:24

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

jasonjckn18:07:44

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

jasonjckn18:07:49

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

jasonjckn18:07:55

that I'm not sure how to run

jasonjckn18:07:18

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

ethangracer18:07:27

not sure if there are docs

ethangracer18:07:40

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

ethangracer18:07:19

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

ethangracer18:07:45

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

ethangracer18:07:37

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

ethangracer18:07:49

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

ethangracer18:07:39

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

jasonjckn18:07:08

oh yah, i've seen that 🙂

tony.kay19:07:12

0.2.2 websockets pushed to clojars

jasonjckn21:07:07

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

tony.kay21:07:11

that should cover all of the tests, yes

tony.kay21:07:21

recognize that doo counts things differently than figwheel

jasonjckn21:07:21

and how do I build a release?

tony.kay21:07:46

we mostly run tests through browser and figwheel

tony.kay21:07:35

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

tony.kay21:07:28

requires the localrepo plugin in your .lein user profile

jasonjckn21:07:02

i think that's equivalent to lein install

jasonjckn21:07:07

thanks for the command though

tony.kay22:07:11

install doesn't get the deps right

tony.kay22:07:20

you have to generate a pom