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
ZIO Test: Add new spec type #4518
Comments
I will take this |
Merged
Thanks so much for this! I'll add support for it in the IntelliJ plugin and it will make my teammates happy 👍 One question: can top-level tests be added without suite? |
Yes, no need for top-level suites. By default there is a top-level suite that has the same name as the spec object. |
Excellent! Thank you! |
Also I think this issue can be closed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To provide a more "flat" style and without any commas, it would be nice to define a mutable spec, supporting the following syntax:
This would be accomplished by defining
suite
andtest
andtestM
methods directly insideMutableRunnableSpec
, which would mutably append to a data structure, which would be materialized when thedef spec
of the parent runnable spec is called.In order to support annotations, the
test
andsuite
methods would have to return some object with@@
side-effect method, which modifies in-place the last definition by applying the test aspect.The goal would be to preserve the existing ZIO Test syntax and feature set almost exactly, while at the same time getting away from the "comma" syntax which many find annoying.
The text was updated successfully, but these errors were encountered: