ERTでテストをするやり方が気になったので、Githubでテストしているリポジトリをいくつか見ていった。 いくつかのリポジトリを見て、これぐらいなら後々応用が利くかなと程度のものができたので記事にしてみようと思う。 テストはEmacs24でついてくるようになったERTをMakefileでテストするやつになる。 https://github.com/pogin503/emacs-test-sample ここに作ったやつが置いてあるので $ git clone git://github.com/pogin503/emacs-test-sample.git $ cd emacs-test-sample $ make testで実行出来ます。 実行例 $ make test /Applications/Emacs.app/Contents/MacOS/Emacs --batch -Q -L . -