MikeSchulze / gdUnit4

A Godot Unit Test Framework. Support for GDScript and C# unit testing
MIT License
565 stars 30 forks source link

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

Closed MikeSchulze closed 3 months ago

MikeSchulze commented 3 months ago

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