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?

Community
  • 1
  • 1
Tomas Kulich
  • 14,388
  • 4
  • 30
  • 35

1 Answers1

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."
Tomas Kulich
  • 14,388
  • 4
  • 30
  • 35
Mike
  • 3,356
  • 3
  • 29
  • 27