Browse Source

adding function for batch test evaluation

* testing/org-test.el (org-test-run-batch-tests): Allows for batch
  evaluation of the Org-mode test suite.
Eric Schulte 13 years ago
parent
commit
5b98dfb644
1 changed files with 8 additions and 0 deletions
  1. 8 0
      testing/org-test.el

+ 8 - 0
testing/org-test.el

@@ -228,6 +228,14 @@ files."
 		 "^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*\\.org$"))
     (find-file file)))
 
+(defun org-test-run-batch-tests ()
+  "Run all defined tests matching \"\\(org\\|ob\\)\".
+Load all test files first."
+  (interactive)
+  (org-test-touch-all-examples)
+  (org-test-load)
+  (ert-run-tests-batch-and-exit "\\(org\\|ob\\)"))
+
 (defun org-test-run-all-tests ()
   "Run all defined tests matching \"\\(org\\|ob\\)\".
 Load all test files first."