I'd like some help understanding what I'm looking at in the default
project. I started the wizard with a default namespace of
com.mycompany.main
This creates a main.clj under Source Packages/com.mycompany
A main.clj under Test Packages/com.mycompany
main.clj under Other Sources/src/main/clojure (clicking on this seems
to lead to the same file as the one under Source Packages).
main.clj under Other Test Sources/src/test/clojure (clicking on this
seems to lead to the same as the one under Test Packages).
1. What's with the Other Sources, Other Test Sources files? What
purpose does it serve, and why does it seem to link to the same files
as in the other packages?
2. When I add a sample test to the Test Packages main.clj file,
running the tests (Alt-F6) still reports that no tests were run. I
notice that the main.clj in Test Packages doesn't match the name of
the namespace (com.mycompany.main-test), so I'm wondering if this
could be why it's not finding the test?
What is the purpose of the pom.xml file? Do you edit this directly or
is it always managed for you entirely?
Thanks,
Mark
This caused errors, but I figured you might have meant to put
"clojure:test" as opposed to "clojure.test" as the goal also, so I
tried that. With that in place, running the goal from the custom menu
seemed to work, and it said it was testing com.mycompany.main, but
then it reported that it ran 0 tests containing 0 assertions, even
though I have added:
(deftest addition
(is (= (+ 2 3) 5)))
inside the com.mycompany.main-test namespace.
Any ideas?
Thanks,
Mark