Closed psyho closed 6 years ago
:+1:
I came here to open the same issue and found this existing one instead. :)
Eftest copies a bunch of code from lein test
, but this may be functionality that is not in the Eftest Leiningen plugin yet.
For those coming here to find the syntax, if you want to run the tests for a single namespace you don't need the :only
keyword, but you do if you want to run a single test from a single namespace:
# Run all tests in my-namespace
lein eftest my-project.my-namespace
lein eftest :only my-project.my-namespace
# Run a single test in my-namespace
lein eftest :only my-project.my-namespace/test-to-run
With
lein test
I can run a single test with a command likelein test :only foo.bar/baz
. As far as I can tell,lein eftest
only supports running tests for entire namespaces. Is there support for running a single test and if so, how can I do it?PS. Thanks for this excellent library, I think this is the most complete clojure test runner that I encountered so far!