lazytest

dorab 2024-11-12T23:37:45.059959Z

Before I try it out myself, does lazytest work with emacs/cider? Meaning, can I use the same test keybindings to run lazytest tests as I do for clojure.test tests? Anything special I have to do? Thanks.

2024-11-13T12:08:19.543239Z

Hey dorab! you'll need to define them yourself somewhere. I don't use emacs so i don't know what that looks like, but there's a section in the readme called "Editor Integration" that shows how to do it for neovim and vscode and intellij. In short, you have to send calls through your repl connection to lazytest.repl/run-all-tests (for all loaded tests), lazytest.repl/run-tests (for a specific namespace), or lazytest.repl/run-test-var (for a specific var).

2024-11-13T12:11:30.306449Z

those calls take an config map as the optional final argument, so you can pass in stuff like output style as well

dorab 2024-11-13T14:59:35.738859Z

Thanks Noah. I read that section in the README but I guess I was looking for the "lazy" (pun intended) way out and hoping someone had already done that. I guess I'll try it out myself and share if I get it to work. I don't know enough about cider yet to know whether it has the hooks you mention. Thanks for lazytest.

2024-11-13T18:56:07.120089Z

give that a try and let me know if it works

dorab 2024-11-13T19:03:51.818289Z

Thanks. I'll check it out.