Skip to content

Add test infrastructure for the language server #88

@dhruvmanila

Description

@dhruvmanila

Currently, there are very limited tests for both the language server and the VS Code extension (E2E tests).

We do get some of the testing done via the linter and formatter tests but not much for the server specific behavior.

Following is an enumeration of the existing tests in the language server:

Most, if not all, of the above tests are in consequence of bug reports.

Following existing servers have a mock server that they use for testing purposes:

A mock server implementation would be immensely helpful but there's one limitation that I see which is that the settings indexer walks through the actual file system. It probably won't be an issue in the red-knot server given that we can use the in-memory file system but we would need to have some kind of solution for the Ruff language server.

Metadata

Metadata

Assignees

Labels

serverRelated to the LSP servertestingRelated to testing ty itself

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions