A very basic template to have tests running in Clojurescript without leiningen tooling. Just clojure command line wrapper.
This project requires Deps and CLI tooling installed.
Used dependencies:
- Figwheel-main
- cljs-test-display
- reagent
- core.async
- cljs-http
- cljs-ajax
Run your dev env:
$ clj -A:fig:dev
- Just open this url:
http://localhost:9500/tests.html
Run clojurescript tests separately:
$ clj -m cljs.main -i tests/testing/core_tests.cljs -e "(cljs.test/run-tests 'testing.core-tests)"
-
install node modules:
$ yarn -i
Now run:
$ clj -A:fig:test-headless
Ouput:
Testing testing.core-test
Ran 1 tests containing 1 assertions.
0 failures, 0 errors.
:figwheel.main.testing/success