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 24 assertions.
22 failures, 0 errors.
Tests failed.
Can you improve this documentation? These fine people already did:
Carlos Cunha, Carlos Fontes & Carlos da Cunha FontesEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close