Replies: 1 comment 3 replies
-
https://github.com/ast-grep/ast-grep/blob/main/crates/lsp/tests/basic.rs might be a good start, even if a bit rougher than I hoped. It seems not many of the language server implemented in rust have this kind of test! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I’d like to write tests for my language server, in order to make sure to not break anything when adding new features or refactoring — just the usual good software development practices :)
It’s easy enough to do with unit tests for simple cases, but unfortunately I can’t find any example of a more complex example that requires several input files, require a full initialized backend or check that modified files or actually written in the expected place. The kind of integration test I expect to find in the
tests
directory.Could someone point me to an example or a real project with this kind of test?
Gaëtan
Beta Was this translation helpful? Give feedback.
All reactions