Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Emacs unit test front-end
Emacs Lisp
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Emacs test-case-mode

test-case-mode is a minor mode for running unit tests. It is extensible and supports several back-ends. It was originally written by Nikolaj Schumacher and is currently maintained by Ian Eure.

Supported test backends

  • JUnit
  • CxxTest
  • CppUnit
  • Python unittest & nosetests
  • Ruby
  • SimpleSpec (for Scala)
  • clojure.test


It’s available in Marmalade; please install from there:

  • M-x package-list-packages
  • C-s test-case-mode
  • i
  • x

To enable it automatically when opening test files:

(add-hook 'find-file-hook 'enable-test-case-mode-if-test)

If you want to run all visited tests after a compilation, add:

(add-hook 'compilation-finish-functions
Something went wrong with that request. Please try again.