-
Notifications
You must be signed in to change notification settings - Fork 51
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
Treat exceptions as equivalent while performing diffbehavior
#324
Comments
I would be happy to contribute towards a patch here, if you think this is a valuable feature |
Interesting! Do you think a change in exception type should still be reported in this mode? Or perhaps we just add a If we come to an agreement about the above, I'd love a contribution! The core bit of code we care about here is where we |
I like the idea to add an option What do you think? What should the default value for the option be? I think the value |
One possibly common reason for different exceptions happens when you edit your logic that creates an exception message, but introduce a bug, and now your intended exception becomes some other exception. Most people would want to know about this. It's also the kind of change that is less likely to have unit test coverage.
I agree that |
This shipped in v0.0.80. |
While running
diffbehavior
on the below functions, crosshair reports a counter-example (because they raise different exceptions).Crosshair output:
It would be nice to have a CLI argument where exceptions are treated as equivalent, and other counter-examples are raised (if any).
The text was updated successfully, but these errors were encountered: