i'm running tests with clj -A:test-run-tests
and getting some output
Error: Can't resolve './calculator' in '/Users/dan/projects/clojure/clojurescript'
which seems a bit strange to me.
also
ERROR in (test-data-readers-records) (core.clj:4739)
Uncaught exception, not in assertion.
expected: nil
actual: clojure.lang.ExceptionInfo: failed compiling file:src/test/cljs/data_readers_test/records.cljc
Am i running tests incorrectly or are they failing on master at the moment?> Ran 179 tests containing 838 assertions. > 0 failures, 2 errors.
@dpsutton similar output has been happening for a long while https://travis-ci.org/github/mfikes/clojurescript/builds/540710982#L2084 If I remember correctly, it is expected, or not of concern, but @mfikes would know for certain.
Yeah, that (presumably innocuous) error has been there for years.
and the test runner runs way more tests. and none fail. i guess the tests aren't meant to be run like clj -A:test:run-tests
I figured out the root cause lein test
worked but not running them from via a -main
that's because the REPL sets up a different class loader as far as I can tell
which doesn't happen you invoke -main
if you look at the ClojureScript test in master this is avoided by not invoking a -main
` via
./scripts/run-tests
or whatever?
clj -m ...
and instead using -i foo.clj
+ -e "(foo/-main)"
look at the aliases in master
deps.edn
maybe @alexmiller has more info about this issue?
can you restate the question?
the different clojure entry points do have some differences wrt classloaders and things like default ns