37

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?

1 Answer 1

59

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."
1
  • 1
    Thanks, that helped! I just changed the answer a little so I can accept it. Jan 5, 2017 at 14:18

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.