In this section, we're going to have a general
overview of some key guidelines and best practices we
should stick to when writing our unit tests.
Now, at first, this stuff might not sound
that important, but believe me, it really is.
It's basically industry standard best
practices distilled down over the years.
So do please take it all in and always
have it at the forefront of your mind when
you're writing a unit tests. Without sticking to these
basic principles, you'll be writing tests, sure,
but they're not going to be good quality unit tests.
The test could you write needs to be easy
to work with, navigate, maintain, interpret, and run.
The reason being that when you write good quality
unit tests, you're assembling a safety net which will
help you out in future and point you quickly
to where errors are in production code.
And you'll sleep better at night knowing your
production code is fully tested and robust.
So let's get into it now and
explore the foundations of a unit testing.