branch: elpa/adoc-mode
commit eb20a274e094411015bce6af4e37a666b5501f35
Author: Florian Kaufmann <sensor...@gmail.com>
Commit: Florian Kaufmann <sensor...@gmail.com>

    made it easier to run tests
---
 adoc-mode-test.el | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/adoc-mode-test.el b/adoc-mode-test.el
index e390b8c724..fc703116ea 100644
--- a/adoc-mode-test.el
+++ b/adoc-mode-test.el
@@ -201,4 +201,12 @@
 (ert-deftest adoctest-test-byte-compile ()
   (ert-should (byte-compile-file (locate-library "adoc-mode.el" t))))
 
-(ert-run-tests-interactively "^adoctest-test-")
+(defun adoc-test-run()
+  (interactive)
+  (save-buffer "adoc-mode.el")
+  (load-library "adoc-mode")
+  (save-buffer "adoc-mode-test.el")
+  (load-library "adoc-mode-test")
+  (ert-run-tests-interactively "^adoctest-test-"))
+
+(global-set-key [(f5)] 'adoc-test-run)

Reply via email to