Make sure that the worker is running during tests
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

WIP-incremental-parsing
Hugo Thunnissen 2 years ago
parent 56eaa3b36d
commit 43ab1bd99b

@ -26,6 +26,11 @@
(require 'ert)
(require 'phpinspect)
;; Make sure that the worker is running. TODO: fully encapsulate the worker the
;; data types that are used in tests so that we don't depend on some global
;; worker object for tests.
(phpinspect-ensure-worker)
(defvar phpinspect-test-directory
(file-name-directory
(or load-file-name
@ -363,7 +368,6 @@ class Thing
(phpinspect-project-root-function (lambda () "phpinspect-test"))
(phpinspect-eldoc-word-width 100))
(phpinspect-purge-cache)
(phpinspect--ensure-index-thread)
(phpinspect-cache-project-class
(phpinspect-project-root)
(cdar (alist-get 'classes (cdr index))))
@ -390,7 +394,6 @@ class Thing
(phpinspect-project-root-function (lambda () "phpinspect-test"))
(phpinspect-eldoc-word-width 100))
(phpinspect-purge-cache)
(phpinspect--ensure-index-thread)
(phpinspect-cache-project-class
(phpinspect-project-root)
(cdar (alist-get 'classes (cdr index))))

Loading…
Cancel
Save