Fork me on GitHub
#testing
<
2019-05-06
>
dharrigan10:05:28

So, starting to get to grips with tests and already hitting my first issue. I have a directory structure thus:

dharrigan10:05:36

./test/dharrigan/palindrome_test.clj
./src/dharrigan/palindrome.clj

dharrigan10:05:49

a deps.edn, like this:

dharrigan10:05:50

{:deps {org.clojure/clojure {:mvn/version "1.10.0"}}
 :aliases
 {:test {:extra-paths ["test"]}}}

dharrigan10:05:34

but when I run eastwood, it complains:

dharrigan10:05:36

Unknown error: java.lang.Exception: No file found for namespace dharrigan.palindrome-test
java.lang.Exception: No file found for namespace dharrigan.palindrome-test

dharrigan10:05:46

In Vim, when I connect (vim-fireplace), it won't eval/reload the namespace, shows this error...

dharrigan10:05:49

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.

dharrigan10:05:45

:face_with_raised_eyebrow:

dharrigan10:05:24

Any help bod can point me in the right direction?

donaldball11:05:05

How are you running eastwood?

dharrigan11:05:26

clojure -A:eastwood

donaldball12:05:59

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

dharrigan15:05:44

Thanks, will examine