-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add missing assertion params to withCode #7641
Add missing assertion params to withCode #7641
Conversation
@swoogles hello 👋 this is my colleague doing his first ZIO pr 🕺 We found the |
12e91c8
to
34d3376
Compare
Before continuing, I'm not sure if this is the right path. Would be interested in hearing some feedback! thanks |
@matthewjones372 I think it is fine to use def withCode(code: String, params: Any*): TestArrow[A, B] =
??? It seems like the contract is that each element of So I think you could use |
@adamgfraser So are you envisioning something like:
? |
Or even: def withCode(render: Assertion.Render): TestArrow[A, B] = ??? May not be able to do that for compatibility so it could be: def withCode(code: String, arguments: Arguments): TestArrow[A, B] = ??? |
8ffb221
to
e269346
Compare
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.
Looks like this is almost there, what do you think @adamgfraser ?
4f1efe6
to
6f07119
Compare
883e768
to
c4a8c5f
Compare
77277ac
to
e0ac331
Compare
Looks like there are some flaky tests, but this one I believe is a result of this PR, but the expectation should be amended to reflect the new ouput IMO:
|
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.
@matthewjones372 Thank you for your work on this and congratulations on your first contribution to ZIO!
thanks! |
Adds additional RenderParams to the with code method for rendering test assertions. Forward ported what was needed from the Render trait in the zio 1 branch.
Closes #7602