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

GD-512: Add append_failure_message to append custom messages to generated assert failures #514

Merged
merged 2 commits into from
Jun 22, 2024

Conversation

MikeSchulze
Copy link
Owner

@MikeSchulze MikeSchulze commented Jun 22, 2024

Why

We want to add a specific message to the failures generated by the gdunit4 asserts to add additional information.

What

Introduced append_failure_message to all gdunit4 asserts

Example

assert_str("Test Message").append_failure_message("custom data").contains("Foo")

image

@MikeSchulze MikeSchulze self-assigned this Jun 22, 2024
@MikeSchulze MikeSchulze added the enhancement New feature or request label Jun 22, 2024
@MikeSchulze MikeSchulze linked an issue Jun 22, 2024 that may be closed by this pull request
…erated assert failures

# Why
We want to add a specific message to the failures generated by the gdunit4 asserts to add additional information.

# What
Introduced `append_failure_message` to all gdunit4 asserts
@MikeSchulze MikeSchulze merged commit 950f7e3 into master Jun 22, 2024
@MikeSchulze MikeSchulze deleted the GD-512 branch June 22, 2024 10:30
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
None yet
Development

Successfully merging this pull request may close these issues.

GD-512: Add function to append additional failure message text
1 participant