- Published on
Article · Measurement
A test should fail for the reason you meant
An is_err assertion can pass because the database is unreachable. Check the intended error category and the stored outcome so unrelated failures cannot make a negative test green.