Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Providing a test library for the clients #128

Open
aminya opened this issue Feb 23, 2021 · 0 comments
Open

Providing a test library for the clients #128

aminya opened this issue Feb 23, 2021 · 0 comments

Comments

@aminya
Copy link
Member

aminya commented Feb 23, 2021

The tests in the atom-languageclient can be refactored and generalized as a language client test library (independent of an exact server). This will make it possible for the clients to test different features for their language server without writing all the tests from scratch.

To do this a couple of things should be done:

  • The test should allow specifying the language server package
import { TestLSP } from "atom-languageclient"
import DLanguageServer from "../lib" 

const testLSP = new TestLSP(DLanguageServer)
  • The test should accept custom data as input and expected (e.g. autocomplete query and the expected value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant