Explorar el Código

Enable debug mode (but suppress messages) during tests

This allows the debug mode code to run for coveralls.io.
Ryan C. Thompson hace 7 años
padre
commit
ba320a126c
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      tests/test-ido-completing-read+.el

+ 5 - 2
tests/test-ido-completing-read+.el

@@ -121,7 +121,7 @@ also accept a quoted list for the sake of convenience."
     (shadow-vars
      ((ido-mode t)
       (ido-ubiquitous-mode t)
-      ido-cr+-debug-mode
+      (ido-cr+-debug-mode t)
       ido-cr+-auto-update-blacklist
       ido-cr+-fallback-function
       ido-cr+-max-items
@@ -132,7 +132,10 @@ also accept a quoted list for the sake of convenience."
       ido-confirm-unique-completion
       ido-enable-flex-matching
       ido-enable-dot-prefix
-      flx-ido-mode)))
+      flx-ido-mode))
+
+    ;; Suppress all messages during tests
+    (spy-on 'message))
 
   ;; Restore the saved values after each test
   (after-each