-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
connection to LSP with findTests request and various improvements #184
Conversation
There is a trade-off between static detection of tests and how they are composed during actual execution.
are somewhat on the edge. For now, I have no good idea to go after such cases. |
I think it should be possible via |
That opens the path for a lot of cases, as soon as you start de-referencing you slowly get into actually executing the code. Let me put more detail on the purpose of this static analysis approach. There are certain patterns to write tests that will bring you closer to the test code than others. In the absence of test location information reported from actual test execution, see rtfeldman/node-test-runner#368, using Elm-LS's static analysis feature serve that use cases better already. The results are more accurate, and way quicker than the current grepping through all test source files. |
I agree and I think you fixed the mayor annoyance for me already. They now group up much nicer and actually running the tests moves stuff around, which I had problems with before. But there still seems to be weird behavior:
|
Code looks good to me, I would like to merge this and play with it some more in the coming days. |
Use the new LS request to find tests at load time.
This PR explores the impact of using static analysis, via LS, on the integration with Test Explorer.
Goes with elm-tooling/elm-language-server#583
Open questions:
Done
Todo: