Each test suite has a unique id, given as a keyword in the test configuration. You can supply one or more of these ids on the command line to run only those test suites.
:aaa
and :bbb
#kaocha/v1
{:tests [{:id :aaa
:test-paths ["tests/aaa"]}
{:id :bbb
:test-paths ["tests/bbb"]}]}
(ns aaa-test (:require [clojure.test :refer :all]))
(deftest foo-test (is true))
(ns bbb-test (:require [clojure.test :refer :all]))
(deftest bbb-test (is true))
When I run bin/kaocha aaa --reporter documentation
And the output should contain:
aaa-test
foo-test
bbb-test
When I run bin/kaocha :aaa --reporter documentation
And the output should contain:
aaa-test
foo-test
bbb-test
When I run bin/kaocha suite-name
Then the output should contain:
No such suite: :suite-name, valid options: :aaa, :bbb.
Can you improve this documentation? These fine people already did:
Arne Brasseur & AaronEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close