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.
- Given a file named "tests.edn" with:
#kaocha/v1
{:tests [{:id :aaa
:test-paths ["tests/aaa"]}
{:id :bbb
:test-paths ["tests/bbb"]}]}
- And a file named "tests/aaa/aaa_test.clj" with:
(ns aaa-test (:require [clojure.test :refer :all]))
(deftest foo-test (is true))
- And a file named "tests/bbb/bbb_test.clj" with:
(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
- And the output should not contain
bbb-test
-
When I run
bin/kaocha :aaa --reporter documentation
-
And the output should contain:
aaa-test
foo-test
- And the output should not contain
bbb-test
-
When I run
bin/kaocha suite-name
-
Then the output should contain:
No such suite: :suite-name, valid options: :aaa, :bbb.