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.
Update on tdd-mode with CIDER
23 Nov 2015, by Artur Malabarba.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.
Tags: CIDER, clojure, programming, init.el, emacs,
Using Paradox for Github notifications »
« Test-Driven-Development in CIDER and Emacs
Related Posts
Turbo up your Ruby console in Emacs in programming
A few paredit keys that take over the world in programming
Restarting the compilation buffer in comint-mode in programming
Content © 2019, All rights reserved. Icons under CC3.0.