-
-
Notifications
You must be signed in to change notification settings - Fork 389
Add tests #5
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
Comments
I think the initial basic task is to just set up the basics of having tests, perhaps with the ones for diagnostics, as those are already present in ghcide. One philosophical discussion we need to have is about test frameworks. ghcide uses tasty, hie uses hspec. Should we harmonise on a single one? If so, which one? |
Yes we should harmonise! |
I think the choice is between tasty and hspec. And I am pretty sure that Digital Asset has a lot of other software built on top of ghcide, and around it, using tasty. And this is likely to tip the balance. For the record, I am happy with either of them too. |
We did discuss which test framework to use, but I can't remember why we landed on the one we did - I've got no real preference. |
Decision time: we will use a) This is already in use for Postscript: (2020-05-10). Shortly after posting this we reversed the decision, and went for hspec. Apologies to all for confusion caused by not communicating this properly. |
I can help on this ticket, let me know which tests are still to be ported over. I see Main, FormatSpec, FunctionalSpec and Utils (PluginSpec seems to be new), just don't want to step on any efforts in flight. |
@jeffwindsor
I dont think there are any ongoing efforts regarding this. Also, feel free to port any plugin from hie to hls that you want. |
Sounds good, I started a structure over in my fork (https://github.com/jeffwindsor/haskell-language-server/tree/issue-5/test/functional) and will put up a pull request as soon as I have something significant. |
I have all the tests converted and moved, but ran out of time before i was able to wire the CI / config / runner. I went ahead and put up the pull request for comment. Locally I am not able to get the test to connect to the server it is looking for (or perhaps run server properly), so although all tests compile and run, most are failing due to timeouts. Any suggestions are welcome |
Hi, the build with ghc-8.8.3, cabal and
It is picking a really old lib version, stack picks |
cabal freeze -w ghc-8.8.3 is picking those versions:
The build succeded in ci after adding tasty: https://circleci.com/gh/haskell/haskell-language-server/379?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link |
Last issue resolved by #119 |
Tests already exist, although most of them are ignored. However i think we can close this one and opened a new one. |
Copy over most of the functional tests from https://github.com/haskell/haskell-ide-engine. The vast majority of these shouldn't need any changes.
We also need some general smoke tests for things like implicit cradle discovery etc
The text was updated successfully, but these errors were encountered: