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

Feature Request: Highlight Test Coverage #134

Open
gordoncyu opened this issue Sep 12, 2024 · 5 comments
Open

Feature Request: Highlight Test Coverage #134

gordoncyu opened this issue Sep 12, 2024 · 5 comments

Comments

@gordoncyu
Copy link

It would be great if other editors could use the language server to highlight code not covered by tests, just like how DrRacket does.

@dannypsnl
Copy link
Contributor

Do you mean the functionality describe in https://docs.racket-lang.org/plait/testing-tutorial.html?

@gordoncyu
Copy link
Author

Yes, I am referring to the "Syntactic test suite coverage". Currently I am just running raco cover thing.rhm and opening the html file in chrome, but giving this information in editor would definitely smooth my workflow and be aligned with the stated goal of "provid[ing] functionality that mimics DrRacket's code tools as closely as possible" in the README, helping in the way any LSP should.

@6cdh
Copy link
Contributor

6cdh commented Sep 15, 2024

I think lsp server can't do that. Test coverage requires to run the code, while lsp server does not run the code and should not run.

There should be a editor specific plugin to do it. For example, there is a button or codelens, click it to run tests in repl, and repl does something under the hood, then show information in editor.

@dannypsnl
Copy link
Contributor

Make sense, @gordoncyu you can also open this request to https://github.com/Eugleo/magic-racket.

@gordoncyu
Copy link
Author

I use neovim btw, so doing so would not be my prerogative. I followed @6cdh's advice, writing my own plugin: https://github.com/gordoncyu/racket-cover.nvim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants