Endless Parentheses

Ramblings on productivity and technical subjects.

profile for Malabarba on Stack Exchange

Update on tdd-mode with CIDER

I can’t write a whole new post this week due to being buried under some once-in-a-lifetime stuff. Still, the Monday post is one I refuse to miss, so I leave you today with an update on last weeks post.

Running tests on file save really didn’t work out for me, because I’ve configured CIDER to save files before loading them when I use cider-load-file. So the tests were always being run against outdated definitions.

The fix is simple, though. Just run the tests after load-file. CIDER even had a hook for that already. I also made the minor-mode global (even though it only applies to clojure buffers) so that it’s easier to disable everywhere with a single command.

The new code is in the original post.

comments powered by Disqus