test2_plugin_nowarnings

Fail if tests warn

Version

0.10-2
(2025-12-25)

Size

2.7

KiB

Repository

HaikuPorts
Loading this plugin causes your tests to fail if there any warnings while they run. Each warning generates a new failing test and the warning content is outputted via diag.
This module uses $SIG{__WARN__}, so if the code you're testing sets this, then this module will stop working.