Age | Commit message (Collapse) | Author |
|
* cb/emacs-eunit-run-current-test:
Add Emacs EUnit utility feature: run current test function.
|
|
This determines the current test function under point (cursor), whether the active buffer
contains a test module (foo_tests) or the module itself (foo), then compiles the source
module (and test module if present) and runs that test function.
Since this added a third testing feature, there was some natural duplication that needed
to be factored out. The notion of 'compile and run tests' was decoupled from exactly
which tests should be run. The definitions of default keybindings were converted to a list
for clarity and conciseness.
|
|
* rd/erlang-eunit:
erlang-eunit.el: Require cl, as it is used
|
|
erlang-eunit.el (part of erlang-mode) uses "flet", which is only available
if emacs package cl was loaded. The docs of the CL package suggest that
'...packages installed in Emacs must not load "CL" at run time.' We
honour this by using eval-when-compile.
This fixes warnings when byte-compiling erlang-eunit.el with:
emacs -batch -f batch-byte-compile erlang-eunit.el
The warning fixed is:
In erlang-eunit-compile-and-run-tests:
erlang-eunit.el:146:4:Warning: `(save-some-buffers (&optional any) nil)'
is a malformed function
This bug was reported initially against Ubuntu packages, see
https://bugs.launchpad.net/bugs/541893 for reference
Signed-off-by: Ralf Doering <[email protected]>
|
|
|