Some good overall thoughts on testing from RJ Zaworski.

Testing verifies that the software in question does what it claims to do. It’s a powerful tool for eliminating defects, building confidence, encouraging good design, and likely all three, but the golden rule of software testing—the most fundamental reason to bother—is to secure the value the software creates.

Programs do useful things. Test suites make sure they continue to do them.