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

hspecWith is legacy #61

Open
ikngtty opened this issue Mar 31, 2020 · 0 comments
Open

hspecWith is legacy #61

ikngtty opened this issue Mar 31, 2020 · 0 comments

Comments

@ikngtty
Copy link
Member

ikngtty commented Mar 31, 2020

In server-test/Main.hs, hspecWith function is used.
It is a legacy and runSpec should be used instead.
(cf. https://hackage.haskell.org/package/hspec-core-2.7.1/docs/Test-Hspec-Core-Runner.html)

On using runSpec, there is a point to be noted:
It, unlike hspecWith, does not output an error exit-code when tests failed.
The document said:

If you need this, you have to check the Summary yourself and act accordingly.

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

1 participant