Dumb newbie question here. I created a brand new lein project and I am trying to run the sample test in the "core_test.clj" file. I am using emacs and "nrepl-jack-in". But when I run "(run-all-tests)" from the repl, I get:
Unable to resolve symbol: deftest in this context, compiling:(NO_SOURCE_PATH:1:1)
Interestingly, the test works from these two scenarios:
1) "lein test" from the commandline
- or -
2) If I put the following line in the repl beforehand:
(ns my-prog.core-test (:require [clojure.test :refer :all] [my-prog.core :refer :all]))
Interestingly, this line is in the "core_test.clj" file itself, but I guess it's not evaluating for some reason. I am evaluating the buffer using Ctrl-x Ctrl-e in emacs but it does not seem to read the namespace specs.