-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Provide an extension point and types hierarchy for rich assertion failure information #73
Comments
@nskvortsov Thanks for raising the issue! Would |
I think yes, they should be. At least, it will allow other test frameworks to implement it. |
@nskvortsov Is this related to #72? /cc @vlsi |
Yes, it is related. This rich assertion failure infomation can cover the use-case described in #72 |
Java API-based approach can't work with, say, Python or BASH tests though |
Some test frameworks or test environments can provide more structured information about the failure than a pair of strings (expected/actual). For example, if expected and actual values are stored in text files on disk, then the paths to those files can be included.
Suggested entry point:
getAdditionalInfo()
method inAssertionFailedError
Types hierarchy can be similar to JUnit's
TestSource
.A serializable marker interface
AssertionFailedInfo extends Serializable
A set of implementations that can be type-checked in runtime. E.g.
This can also cover some other requests, e.g. #72
The text was updated successfully, but these errors were encountered: