3 ms·
Unit tests is a tool to help you write the implementations and verify it works like you intended to. You could do the same thing by "F5"-ing it, that is runnin
by bni 9y ago
Unit tests is a tool to help you write the implementations and verify it works like you intended to.
You could do the same thing by "F5"-ing it, that is running the full app, but the problem with that it is slower and above all NOT repeatable later, without significant setup time.
Running the test, sets breakpoints and debug implementation by running the unit test, is by far the fastest way to develop, while also having atleast some assurance that the code you are writing is "correct"