Skip Eglot rust-analyzer tests if 'cargo' isn't available

* test/lisp/progmodes/eglot-tests.el
(project-wide-diagnostics-rust-analyzer)
(diagnostic-tags-unnecessary-code): Skip unless "cargo" is found.
This commit is contained in:
João Távora 2022-12-12 09:39:32 +00:00
parent 06ef030f93
commit 081bf58300

View file

@ -431,6 +431,7 @@ Pass TIMEOUT to `eglot--with-timeout'."
(ert-deftest diagnostic-tags-unnecessary-code () (ert-deftest diagnostic-tags-unnecessary-code ()
"Test rendering of diagnostics tagged \"unnecessary\"." "Test rendering of diagnostics tagged \"unnecessary\"."
(skip-unless (executable-find "rust-analyzer")) (skip-unless (executable-find "rust-analyzer"))
(skip-unless (executable-find "cargo"))
(eglot--with-fixture (eglot--with-fixture
'(("diagnostic-tag-project" . '(("diagnostic-tag-project" .
(("main.rs" . (("main.rs" .
@ -780,6 +781,7 @@ pylsp prefers autopep over yafp, despite its README stating the contrary."
(ert-deftest project-wide-diagnostics-rust-analyzer () (ert-deftest project-wide-diagnostics-rust-analyzer ()
"Test diagnostics through multiple files in a TypeScript LSP." "Test diagnostics through multiple files in a TypeScript LSP."
(skip-unless (executable-find "rust-analyzer")) (skip-unless (executable-find "rust-analyzer"))
(skip-unless (executable-find "cargo"))
(eglot--with-fixture (eglot--with-fixture
'(("project" . '(("project" .
(("main.rs" . (("main.rs" .