Clojure.test and Leinigen: how to run only one test from the command line

Run one Clojure test (not all tests in the namespace), with instruments, from REPL

works great with repl, how can I do this from the command line using Leinigen?

+6
source share
1 answer

What you are looking for is perhaps:

lein test :only my.namespace/my-test 

Note that:

 lein help test 

outputs:

 "A default :only test-selector is available to run select tests. For example, `lein test :only leiningen.test.test/test-default-selector` only runs the specified test. A default :all test-selector is available to run all tests." 
+13
source

Source: https://habr.com/ru/post/1013790/


All Articles