How to test Warnings

Hi,

I started adding some warnings to some of my schema properties via ValidateDiagFunc diag.Diagnostics.
But when I run resource.Test(...) it doesn’t seem to fail on warnings, is there a way to configure it to fail on warnings?