Fork me on GitHub

test-case-mode - "0.1.9"

what is it? download test-case-mode

unit test front-end

by Nikolaj Schumacher <bugs * nschum de>

how to install

M-x package-install [RET] test-case-mode [RET]


`test-case-mode' is a minor mode for running unit tests.  It is extensible
and currently comes with back-ends for JUnit, CxxTest, CppUnit, Python,
Ruby, Scala (with SimpleSpec), and Clojure.

The back-ends probably need some more path options to work correctly.
Please let me know, as I'm not an expert on all of them.

To install test-case-mode, add the following to your .emacs:
(add-to-list 'load-path "/path/to/test-case-mode")
(autoload 'test-case-mode "test-case-mode" nil t)
(autoload 'enable-test-case-mode-if-test "test-case-mode")
(autoload 'test-case-find-all-tests "test-case-mode" nil t)
(autoload 'test-case-compilation-finish-run-all "test-case-mode")

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

If failures have occurred, they are highlighted in the buffer and/or its
fringes (if fringe-helper.el is installed).

fringe-helper is available at:

C++ tests can be compiled in a multitude of ways.  test-case-mode currently
only supports running them if each test class comes in its own file.

Change Log:

2009-03-30 (0.1)
Initial release.

2012-02-01 (0.1.3)
PHPUnit, Tramp, and nosetests support.

2012-04-28 (0.1.5)
Allow tests to run from other directories. Add SimpleSpec
backend. Fix some bugs that prevented tests from running. Try
enabling T-C-M when test-case-run is called.

2012-05-17 (0.1.7)
Support SimpleSpec 0.6.0 &amp; clojure.test. Allow multiple failure

2012-12-28 (0.1.8)
Fix copyright year. Autoload `test-case-run'. Add