> You note that you're using ccw, is that because you have a clue that there
> could be something related to the "lazytest-ccw" combo in the issue you're
> facing ?
no, ccw is ok. its a big help for
us die-hard eclipse users. thank you.
i think its my mistake: i put tests
in a different src-file but use same
namespace.
src in: src/main/clojure/myapp/foo.clj
tests in: test/main/clojure/myapp/foo.clj
clojure tries to load tests first and gets a
'symbol not found' - of course.
it works ok when i use a separate ns
for tests (myapp.foo-tests) and do:
; execute tests for specified namespaces
(doseq [ns ["myapp.foo"]]
(let [src-ns (symbol ns) test-ns (symbol (str ns "-tests"))]
(println "Loading " ns)
(remove-ns src-ns)
(require src-ns :reload)
(remove-ns test-ns)
(require test-ns :reload)
(println "Running tests in " test-ns)
(lazytest.report.nested/report
(lazytest.runner.console/run-tests test-ns))))
remove-ns is required because tests sum up on reload as
lazytest uses gensym ...
have a successful day
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en