Running buttercup unit tests with doom emacs
Doom emacs has all kinds of weird stuff going on when starting up, so the standard
emacs --batch command doesn't work. Instead, I wrote a little doomscript prompted by the following github issue . This allows me to run buttercup scripts with the CLI command
#!/usr/bin/env doomscript (defcli! buttercup () (require 'doom-start) (require 'buttercup) ;; prepend . to load path (setq load-path (cons "." load-path)) (buttercup-run-discover)) (run! "buttercup")
Save it under
~/.doom.d/bin and make sure it is in your
$PATH and off you go!