figwheel-main

figwheel-main http://figwheel.org
paulbutcher 2019-10-06T11:30:38.001400Z

Hi - I’m trying to get started with Figwheel Main via the template. I’m working through the instructions at https://rigsomelight.com/figwheel-main-template/ and I suspect I’m missing something really simple. I can run my project and see the live tests in the browser (all good). But when I try to run the tests from the command line with “clj -A:fig:test”, I get:

Error in command line args
-- Spec failed --------------------

  ["-co" "test.cljs.edn" "-m" "hello-world.test-runner/hello-world.test-runner"]
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

should be a CLJS namespace available on the classpath

__ Doc for -m --main _____

  Call the -main function from a namespace with args

-------------------------
Detected 1 error
I suspect I’m missing something really basic - any pointers?

paulbutcher 2019-10-06T11:34:16.002800Z

Ah! theller helped me debug this in the #clojurescript channel - the generated deps.edn should have the name of the test runner quoted. I’ll see if I can knock together a pull request to fix this.

paulbutcher 2019-10-06T16:26:11.003100Z

https://github.com/bhauman/figwheel-main-template/pull/17