Include messages while testing signaling conditions #272
Labels
Beginner-friendly 🤝
Friendly for new contributors
Code Style 👩💻
Core Packages 📦
Discussion and planning about core packages of easystats
Currently, most of the tests that check for signaling conditions (messages, warnings, or errors) are only testing if the conditions occur. But we should be additionally capturing the condition messages to ensure that the condition was produced for expected reasons, and not for some other, unexpected reasons.
expect_error()
,expect_warning()
, andexpect_message()
all have aregexp
argument for this.For example, see this test from
{datawizard}
.Progress tracker:
The text was updated successfully, but these errors were encountered: