Explorar el Código

Ensure undercover.el is loaded first in tests

undercover.el needs to be set up before loading the files for which
coverage is to be computed.
Ryan C. Thompson hace 7 años
padre
commit
fa13f8890a
Se han modificado 3 ficheros con 4 adiciones y 5 borrados
  1. 1 1
      Makefile
  2. 3 0
      tests/setup-undercover.el
  3. 0 4
      tests/test-ido-completing-read+.el

+ 1 - 1
Makefile

@@ -14,7 +14,7 @@ test: clean
 	cask exec buttercup -L . tests
 
 test-with-flx: clean
-	cask exec buttercup -L . tests tests-with-flx-ido
+	cask exec buttercup -l tests/setup-undercover.el -L . tests tests-with-flx-ido
 
 all-tests: test test-with-flx
 

+ 3 - 0
tests/setup-undercover.el

@@ -0,0 +1,3 @@
+(require 'undercover)
+(undercover "*.el"
+            (:exclude "test-*.el"))

+ 0 - 4
tests/test-ido-completing-read+.el

@@ -1,9 +1,5 @@
 ;;; -*- lexical-binding: t -*-
 
-(require 'undercover)
-(undercover "*.el"
-            (:exclude "test-*.el"))
-
 (require 'ido)
 (require 'minibuf-eldef)
 (require 'ido-completing-read+)