So far, we’ve spent time creating our masterpiece, ready for use, but – can we be sure it all works? What guarantee do we have that it won’t suddenly collapse in a heap the first time someone tries to use it?
Before we release our library to the outside world, we need to test each component to ensure they all work as expected. In this chapter, we will go through the process of setting up unit testing for our library before exploring some examples of tests we can write, so end users can see how each component ...