-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Issue 5 - Move HIE Tests and convert to Tasty #105
Conversation
helps resolve #5 |
I'm a bit embarrased to say this, but we decided to stick with hspec, because it has better rerun options. |
What's missing in |
@Bodigrim possibly just my inability to look up documentation. But I do know that if an hspec test fails, it lists a way to rerun just that test, with the appropriate command line invocation, as part of the test result. I find this invaluable. |
And, full disclosure, I have a personal bias, as all my other OSS projects use hspec. |
Full disclosure: I also have a personal bias, being a maintainer of |
closing to move to hspec |
More discussion needed. As I look at this PR, I dont have anything to complain about on the first sight! @jeffwindsor Please dont undo your work, yet. |
@Bodigrim glad to have you take an interest. The main thing I care about is if a test fails, I get something like
And then I can do stack --stack-yaml=stack.yaml test haskell-language-server:func-test --test-arguments "--match \"/Plugin/composes code actions/provides 3.8 code actions/\"" To run just that test |
One other thing that would be useful, is junit.xml output. as per https://github.com/haskell/haskell-ide-engine/blob/master/test/utils/TestUtils.hs#L306 |
http://hackage.haskell.org/package/tasty-ant-xml works well for me. |
To summarize the discussion on IRC, we will continue with tasty. For the avoidance of future doubt. Sorry to have caused so much trauma for all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far. Thank you for this huge contribution!
What I think is missing:
- Marking most of the test-cases as broken
- Add junit-xml runner
As of this commit I have not been able to test the re-run or xml output successfully, but I am sure it is just a matter of getting the cli parameters to get through with the cradle Also I am not able to the see the CI results so not sure why the ghc version failed. |
Awesome, I will review it in the next days in depth! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Tests are converted to Tasty format. The tests compile and run from console, but most fail / timeout.
I want to check in to see if this is going the right direction, and maybe get some help wiring up the CI / Runner / Config.