crisptrutski / boot-cljs-test

Boot task to run ClojureScript tests.
53 stars 18 forks source link

tests are not run when `:js-env` is `:chrome` #75

Closed sinistral closed 6 years ago

sinistral commented 6 years ago

With js-env set to :chrome in a simple project produced by tenzing, no tests are run:

>> boot test
Adding: ([doo "0.1.7"]) to :dependencies
Compiling ClojureScript...
• cljs_test/generated_test_suite.js

;; ======================================================================
;; Testing with Chrome:

[doo] Started karma server
05 11 2017 14:05:49.041:WARN [watcher]: All files matched by ".../hellotenzing/hds/6qp7pj/cljs_test/generated_test_suite.out/**/*.js" were excluded or matched by prior matchers.
05 11 2017 14:05:49.044:WARN [watcher]: All files matched by ".../hellotenzing/hds/6qp7pj/cljs_test/generated_test_suite.out/*.js" were excluded or matched by prior matchers.
[doo] Started karma run
Close Karma run
Shutdown Karma Server

Compare this to a similar run for a simple (leiningen) project produced by chestnut:

>> lein doo chrome                                                                                                             ~/Development/sinistral/_helloworld/hellochestnut <<
Retrieving clojure-complete/clojure-complete/0.2.4/clojure-complete-0.2.4.pom from clojars
Retrieving clojure-complete/clojure-complete/0.2.4/clojure-complete-0.2.4.jar from clojars
2017-11-05 14:13:35.708:INFO::main: Logging initialized @2504ms
Building ...
... done. Elapsed 0.793932281 seconds
[doo] Started karma server
05 11 2017 14:13:46.567:WARN [watcher]: All files matched by ".../hellochestnut/out/**/*.js" were excluded or matched by prior matchers.
05 11 2017 14:13:46.570:WARN [watcher]: All files matched by ".../hellochestnut/out/*.js" were excluded or matched by prior matchers.

;; ======================================================================
;; Testing with Chrome:

[doo] Started karma run
Watching paths: .../hellochestnut/src/cljs, .../hellochestnut/test/cljs, .../hellochestnut/src/cljc, .../hellochestnut/test/cljc
05 11 2017 14:13:47.690:WARN [watcher]: All files matched by ".../hellochestnut/out/**/*.js" were excluded or matched by prior matchers.
05 11 2017 14:13:47.690:WARN [watcher]: All files matched by ".../hellochestnut/out/*.js" were excluded or matched by prior matchers.
05 11 2017 14:13:47.784:WARN [web-server]: 404: /out/cljs_deps.js
LOG: 'Testing hellochestnut.core-test'
LOG: 'Testing hellochestnut.common-test'
Chrome 61.0.3163 (Mac OS X 10.12.6): Executed 2 of 2 SUCCESS (0.008 secs / 0.021 secs)
^CClose Karma run
Shutdown Karma Server

The exclusion warnings appear to be a red herring since they're reported for the chestnut project, but tests are still run. It is for this reason that I'm raising this as a boot-cljs-test issue, rather than as a doo issue.

sinistral commented 6 years ago

Running the Karma server and client by hand using doo's generated config does run the tests correctly. So the config file is correct ... but somewhere along the line something is going missing.

binarykitchen commented 6 years ago

Well, this still happens to me when using doo 0.1.8 and chrome-headless

alexandergunnarson commented 5 years ago

Probably a duplicate of https://github.com/crisptrutski/boot-cljs-test/issues/60.