From 63faebd64b0ab9b77bc890bf88555050a16c7598 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Tue, 23 Aug 2011 08:36:45 -0600 Subject: [PATCH] more robust test execution with `org-test-run-all-tests' * testing/org-test.el (org-test-touch-all-examples): Open all example files -- seems to help resolution of org ids. (org-test-run-all-tests): Open all example files before running tests. --- testing/org-test.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing/org-test.el b/testing/org-test.el index 4e2f8e640..e639a3243 100644 --- a/testing/org-test.el +++ b/testing/org-test.el @@ -222,10 +222,17 @@ files." (file-name-nondirectory (buffer-file-name))) "/"))) +(defun org-test-touch-all-examples () + (dolist (file (directory-files + org-test-example-dir 'full + "^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*\\.org$")) + (find-file file))) + (defun org-test-run-all-tests () "Run all defined tests matching \"\\(org\\|ob\\)\". Load all test files first." (interactive) + (org-test-touch-all-examples) (org-test-load) (ert "\\(org\\|ob\\)"))