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:
parent
06ef030f93
commit
081bf58300
1 changed files with 2 additions and 0 deletions
|
@ -431,6 +431,7 @@ Pass TIMEOUT to `eglot--with-timeout'."
|
|||
(ert-deftest diagnostic-tags-unnecessary-code ()
|
||||
"Test rendering of diagnostics tagged \"unnecessary\"."
|
||||
(skip-unless (executable-find "rust-analyzer"))
|
||||
(skip-unless (executable-find "cargo"))
|
||||
(eglot--with-fixture
|
||||
'(("diagnostic-tag-project" .
|
||||
(("main.rs" .
|
||||
|
@ -780,6 +781,7 @@ pylsp prefers autopep over yafp, despite its README stating the contrary."
|
|||
(ert-deftest project-wide-diagnostics-rust-analyzer ()
|
||||
"Test diagnostics through multiple files in a TypeScript LSP."
|
||||
(skip-unless (executable-find "rust-analyzer"))
|
||||
(skip-unless (executable-find "cargo"))
|
||||
(eglot--with-fixture
|
||||
'(("project" .
|
||||
(("main.rs" .
|
||||
|
|
Loading…
Add table
Reference in a new issue