[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 6894ed7 13/15: Tweak tests, hopefully stabilize p
From: |
João Távora |
Subject: |
[elpa] externals/eglot 6894ed7 13/15: Tweak tests, hopefully stabilize pyls tests on Travis |
Date: |
Sun, 20 May 2018 19:59:04 -0400 (EDT) |
branch: externals/eglot
commit 6894ed719ea74be225c36e3302b6becc19ff67b6
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Tweak tests, hopefully stabilize pyls tests on Travis
* eglot-tests.el (basic-completions, hover-after-completions)
(auto-detect-running-server, autoreconnect): Swap order of
eglot--with-dirs-and-files and eglot--with-dirs-and-files.
(eglot--with-dirs-and-files): Adjust indent spec.
---
eglot-tests.el | 34 ++++++++++++++++------------------
1 file changed, 16 insertions(+), 18 deletions(-)
diff --git a/eglot-tests.el b/eglot-tests.el
index 3f06732..d007cb1 100644
--- a/eglot-tests.el
+++ b/eglot-tests.el
@@ -31,7 +31,7 @@
;; Helpers
(defmacro eglot--with-dirs-and-files (dirs &rest body)
- (declare (indent defun) (debug t))
+ (declare (indent 1) (debug t))
`(eglot--call-with-dirs-and-files
,dirs #'(lambda () ,@body)))
@@ -113,11 +113,11 @@
"Visit a file and M-x eglot, then visit a neighbour. "
(skip-unless (executable-find "rls"))
(let (proc)
- (eglot--with-test-timeout 2
- (eglot--with-dirs-and-files
+ (eglot--with-dirs-and-files
'(("project" . (("coiso.rs" . "bla")
("merdix.rs" . "bla")))
("anotherproject" . (("cena.rs" . "bla"))))
+ (eglot--with-test-timeout 2
(with-current-buffer
(eglot--find-file-noselect "project/coiso.rs")
(setq proc
@@ -137,10 +137,10 @@
(skip-unless (executable-find "rls"))
(let (proc
(eglot-autoreconnect 1))
- (eglot--with-test-timeout 3
- (eglot--with-dirs-and-files
+ (eglot--with-dirs-and-files
'(("project" . (("coiso.rs" . "bla")
("merdix.rs" . "bla"))))
+ (eglot--with-test-timeout 3
(with-current-buffer
(eglot--find-file-noselect "project/coiso.rs")
(setq proc
@@ -160,24 +160,22 @@
(ert-deftest basic-completions ()
"Test basic autocompletion in a python LSP"
(skip-unless (executable-find "pyls"))
- (unwind-protect
- (eglot--with-test-timeout 10
- (eglot--with-dirs-and-files
- '(("project" . (("something.py" . "import sys\nsys.exi"))))
- (with-current-buffer
- (eglot--find-file-noselect "project/something.py")
- (eglot 'python-mode `(transient . ,default-directory) '("pyls"))
- (goto-char (point-max))
- (completion-at-point)
- (should (looking-back "sys.exit"))
- )))))
+ (eglot--with-dirs-and-files
+ '(("project" . (("something.py" . "import sys\nsys.exi"))))
+ (eglot--with-test-timeout 4
+ (with-current-buffer
+ (eglot--find-file-noselect "project/something.py")
+ (eglot 'python-mode `(transient . ,default-directory) '("pyls"))
+ (goto-char (point-max))
+ (completion-at-point)
+ (should (looking-back "sys.exit"))))))
(ert-deftest hover-after-completions ()
"Test basic autocompletion in a python LSP"
(skip-unless (executable-find "pyls"))
- (eglot--with-test-timeout 3
- (eglot--with-dirs-and-files
+ (eglot--with-dirs-and-files
'(("project" . (("something.py" . "import sys\nsys.exi"))))
+ (eglot--with-test-timeout 4
(with-current-buffer
(eglot--find-file-noselect "project/something.py")
(eglot 'python-mode `(transient . ,default-directory) '("pyls"))
- [elpa] externals/eglot updated (8e5acb1 -> 24877ae), João Távora, 2018/05/20
- [elpa] externals/eglot c648c4f 08/15: Robustness fixes for the request mechanism, João Távora, 2018/05/20
- [elpa] externals/eglot 3f6d2e2 04/15: Close #4: Collect regions to change as markers, then edit, João Távora, 2018/05/20
- [elpa] externals/eglot a91d72c 01/15: Simplify some infrastructure fucntions, João Távora, 2018/05/20
- [elpa] externals/eglot 258fb98 12/15: Travis now runs python-language-server tests, João Távora, 2018/05/20
- [elpa] externals/eglot 99686a9 11/15: * eglot.el (Version): Bump to 0.4, João Távora, 2018/05/20
- [elpa] externals/eglot 6894ed7 13/15: Tweak tests, hopefully stabilize pyls tests on Travis,
João Távora <=
- [elpa] externals/eglot 4b9f4da 03/15: If we're going to send rootPath, better send an absolute one, João Távora, 2018/05/20
- [elpa] externals/eglot 2ede684 06/15: Better decide what text exactly to present as completions, João Távora, 2018/05/20
- [elpa] externals/eglot 17b7740 05/15: * eglot.el (eglot-clear-status): Remember to update modeline, João Távora, 2018/05/20
- [elpa] externals/eglot b45cb80 02/15: Robustify timer handling for eglot--async-request, João Távora, 2018/05/20
- [elpa] externals/eglot ace6fce 07/15: Check capabilities before sending :completionItem/resolve, João Távora, 2018/05/20
- [elpa] externals/eglot 24877ae 15/15: Fix a bug introduced in the previous commit, João Távora, 2018/05/20
- [elpa] externals/eglot 95c2052 09/15: Handle managed buffers in own process var, João Távora, 2018/05/20
- [elpa] externals/eglot 433361e 10/15: Add some completion tests for pyls, João Távora, 2018/05/20
- [elpa] externals/eglot 50b974f 14/15: Rewrite a couple of defs and shave a yak, João Távora, 2018/05/20