Unit tests:
lein clj-test-pass-unit
Integration tests:
lein clj-test-pass-integration
lein clj-test-fail
Do the following config before proceeding, in order to get accurate test line information on reports.
First install source maps support node package:
npm install source-map-support
Enable source maps on your project.clj
test build config:
{:cljsbuild
{:builds
{...
{:compiler {:source-map true}}}}}
Unit tests:
lein cljs-test-pass-unit
Integration tests:
lein cljs-test-pass-integration
lein cljs-test-fail
lein tach planck
# or
lein tach lumo
./script/run_all_passing_tests.sh
The test report should look like this:
Ran 15 tests containing 25 assertions.
25 failures, 0 errors.
Tests failed.