From 428c9318fd6aca85b7ef962586e9cb86e8f062ad Mon Sep 17 00:00:00 2001 From: Sebastian Crane Date: Fri, 1 Apr 2022 21:20:54 +0100 Subject: [PATCH] Set default test runner function for :test alias This commit sets in deps.edn the default main function to be run when using the :test alias, making the command to run tests shorter, and documents this shorter command in README.md. Signed-off-by: Sebastian Crane --- README.md | 2 +- deps.edn | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2670e33..8cdc708 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ clojure -M -m system Running the tests is a similar process to running the main application: ```bash -clojure -M:test -m kaocha.runner +clojure -M:test ``` ### Starting a development REPL diff --git a/deps.edn b/deps.edn index 097d80f..ba54d9c 100644 --- a/deps.edn +++ b/deps.edn @@ -6,4 +6,5 @@ clj-commons/clj-yaml {:mvn/version "0.7.107"} irclj/irclj {:mvn/version "0.5.0-alpha4"}} :aliases {:test {:extra-paths ["test"] - :extra-deps {lambdaisland/kaocha {:mvn/version "1.60.972"}}}}} + :extra-deps {lambdaisland/kaocha {:mvn/version "1.60.972"}} + :main-opts ["-m" "kaocha.runner"]}}}