Explorar o código

New function: Run all tests for current file

* org-test.el (org-test-current-file): New function.  Run all tests
for current file.
David Maus %!s(int64=14) %!d(string=hai) anos
pai
achega
6de7ac6b89
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      testing/org-test.el

+ 8 - 0
testing/org-test.el

@@ -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."