So, starting to get to grips with tests and already hitting my first issue. I have a directory structure thus:
./test/dharrigan/palindrome_test.clj
./src/dharrigan/palindrome.clj
a deps.edn, like this:
{:deps {org.clojure/clojure {:mvn/version "1.10.0"}}
:aliases
{:test {:extra-paths ["test"]}}}
but when I run eastwood, it complains:
Unknown error: java.lang.Exception: No file found for namespace dharrigan.palindrome-test
java.lang.Exception: No file found for namespace dharrigan.palindrome-test
In Vim, when I connect (vim-fireplace), it won't eval/reload the namespace, shows this error...
Execution error (FileNotFoundException) at user/eval6866 (REPL:1).
Could not locate dharrigan/palindrome_test__init.class, dharrigan/palindrome_test.clj or dharrigan/palindrome_test.cljc on classpath. Plea
se check that namespaces with dashes use underscores in the Clojure file name.
:face_with_raised_eyebrow:
Any help bod can point me in the right direction?
How are you running eastwood?
clojure -A:eastwood
I suspect you’ll either need to add :extra-paths
to the :eastwood
alias or use both aliases, which I think would be clojure -A:eastwood:test
Thanks, will examine