New function: Run all tests for current file

* org-test.el (org-test-current-file): New function.  Run all tests
for current file.
This commit is contained in:
David Maus 2010-11-22 19:29:05 +01:00
parent 02494667c7
commit 6de7ac6b89
1 changed files with 8 additions and 0 deletions

View File

@ -199,6 +199,14 @@ files."
(interactive)
(ert (which-function)))
(defun org-test-current-file ()
"Run all tests for current file."
(interactive)
(ert (concat "test-"
(file-name-sans-extension
(file-name-nondirectory (buffer-file-name)))
"/")))
(defun org-test-run-all-tests ()
"Run all defined tests matching \"\\(org\\|ob\\)\".
Load all test files first."