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

Ensure that the assertion failure message of a fatal test failure is output even if there are preceding non-fatal errors in the test. #254

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

hovinen
Copy link
Collaborator

@hovinen hovinen commented Jul 7, 2023

There was a bug in which, if a test had a mix of fatal and non-fatal assertions, and a non-fatal assertion failed, then the test assertion failure message of a subsequent fatal assertion failure would not be output. This did not affect the overall test result but would be confusing and misleading by not including all failure messages. This change fixes the bug and introduces an integration test to protect against it.

…output even if there are preceding non-fatal errors in the test.

There was a bug in which, if a test had a mix of fatal and non-fatal assertions, and a non-fatal assertion failed, then the test assertion failure message of a subsequent fatal assertion failure would not be output. This did not affect the overall test result but would be confusing and misleading by not including all failure messages. This change fixes the bug and introduces an integration test to protect against it.
@copybara-service copybara-service bot merged commit 056ef2f into main Jul 7, 2023
@gribozavr gribozavr deleted the fix-fatal-and-non-fatal-error branch February 17, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant