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

1

38

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?

Sforza answered 5/1, 2017 at 12:9 Comment(0)
R
61

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."
Rhiannonrhianon answered 5/1, 2017 at 12:22 Comment(1)
Thanks, that helped! I just changed the answer a little so I can accept it.Sforza

© 2022 - 2024 — McMap. All rights reserved.