Open heralden opened 5 years ago
I'm open to ideas.
It's probably still missing some cases, but I've been working with this for some time: https://github.com/dhleong/vim-hearth/blob/master/autoload/hearth/test/cljs.vim
As far as cpr
goes, I think part of the problem is that vim-fireplace tries to call load-file
on a resource path, but it expects an actual file path. So, while the src/test
is on the classpath, using (load-file "foo/some-test.cljs")
on src/test/foo/some-test.cljs
will not work anyway - it needs to call (load-file "src/test/foo/some-test.cljs")
.
Also worth noting that shadow-cljs added support for relative paths fairly recently.
:RunTests
runs the Clojure tests for the namespace when invoked from a.cljs
file, andcpr
only does a:Require
.Any chance of adding support for
cljs.test
? It seems it can be a bit tricky withs:capture_test_run
as it uses manyclojure.test
functions that aren't present incljs.test
.