Display complete dependency tree with Leiningen

You can generate Maven’s POM out of Leiningen’s project definition and then use Maven’s dependency:tree plugin with a verbose option, like this: $ lein pom $ mvn dependency:tree -Dverbose=true This will list dependencies omitted for various reasons, e.g.: | +- ring:ring-core:jar:1.4.0:compile | | +- (org.clojure:clojure:jar:1.5.1:compile – omitted for conflict with 1.7.0) | | +- (org.clojure:tools.reader:jar:0.9.1:compile … Read more

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

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

Run tests from Clojure Repl and Leiningen

Start a REPL with lein repl, then use require (require ‘[clojure.test :refer [run-tests]]) (require ‘your-ns.example-test :reload-all) (run-tests ‘your-ns.example-test) I prefer to stay in the user namespace, as opposed to changing it with in-ns as mentioned by another answer. Instead, pass the namespace as an argument to run-tests (as shown above). I’d also recommend staying away … Read more

How to upgrade nrepl version of leiningen?

I’ve just had this problem, and I solved it by adding an explicit dependency on the newer version of tools.nrepl to profiles.clj. My ~/.lein/profiles.clj: {:repl {:plugins [[cider/cider-nrepl “0.9.0-SNAPSHOT”]] :dependencies [[org.clojure/tools.nrepl “0.2.7”]]}} No idea whether that’s the best or official way to do it, tho’.

Any way to add dependency to lein project without REPL restart?

You can use Alembic, a dynamic classpath loader and dependencies resolver. The good thing is that it doesn’t load all pomegranate dependencies. Add the following to your .lein/profiles.clj: {:user {:dependencies [[alembic “0.3.2”]]}} Then in your Repl just load the classpaths you need, they will be pulled from the repositories by leinif need: (require ‘alembic.still) (alembic.still/distill … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)