Contact Free trial Login

Fail Event Processor

The Fail Event Processor allows you to fail your test on purpose. This is useful to validate that a test should fail if that point is reached.

<munit-tools:fail
  message="This should fail"/>

The message field is optional and defines the error message to print when the assertion fails. The processor throws a java.lang.AssertionError.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub