現在開発中のguide-keyの機能がそれなりに増えてきたので、そろそろテストを書きた いなと思いました。そこでERTでユニットテストを書いて、Caskで依存関係を解決して、 Travis CIでCIするところまでできたので紹介します。 ERTでユニットテスト ERTはEmacs Lisp Regression Testingの略で、Emacs Lispのテスティングツールです。 JUnitなどと同様にユニットテストが書けます。 ディレクトリ構成 EmacsLispで最小構成(っぽい)テストをする方法 - プログラムとかののblog が丁度良くテストの最小構成を紹介していたので、真似して以下のようなディレクトリ 構成にしました。 guide-key/ ├── guide-key.el └── test/ └── guide-key-test.el 参考にしたリポジトリも、概ねリポジトリ直下
So Emacs 24 has been released. It's a major step forward for Emacs because 24 includes a packaging system. The packaging system is variously known as elpa or package.el but here we will call it just package. This article is a few tips and tricks to make working with packages easier, particularly aimed at developers of Emacs packages. Some tips are still useful for people who just want to install p
There are plenty of unit/regression testing tools for Emacs, and even some for functional testing. What Emacs is missing though is a really good testing framework for integration testing. This is where Ecukes comes in. Cucumber is a great integration testing tool, used mostly for testing web applications. Ecukes is Cucumber for Emacs. No, it's not a major mode to edit feature files. It is a packag
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 . -
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く