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

Should panic with specific message #2484

Closed
LHerskind opened this issue Aug 30, 2023 · 0 comments · Fixed by #2541
Closed

Should panic with specific message #2484

LHerskind opened this issue Aug 30, 2023 · 0 comments · Fixed by #2541
Labels
enhancement New feature or request

Comments

@LHerskind
Copy link
Contributor

Problem

When testing it can be very useful to test that a failure was due to a specific assertion. From #1994 it is possible to test failing cases, but it is not giving much input on exactly why it failed. Adding this feature could be very useful for more complete testing. Depends on #1939 to be included first.

Happy Case

Adding support for something like

#[test(should_fail_with("assert message")]

Would be neat.

Alternatives Considered

No response

Additional Context

Example of similar features:

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@LHerskind LHerskind added the enhancement New feature or request label Aug 30, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Aug 30, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant