简体   繁体   中英

Clojure.test and Leinigen: How to run just a single test from command line

this:

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

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

What you are looking for is probably:

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."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM