You are basically right. Looking for ways that can break your code is a key part and unit testing skills. However, the unit testing used in TDD works a little differently. In TDD, you first write a test for new functionality, and then create code to pass this test. Thus, the emphasis here is different, although the end result is similar.
In TDD, one "changes hats" constantly - a little testing, a little coding. Thus, in this method, testing is not an automated part, but we can say that this is the key to the creative process. When writing tests, you also develop the interface of your department and think from the point of view of its (future) customers - what can they expect and what should they provide? Then you switch hats and go inside the device to fulfill these expectations.
Therefore, I do not think that this can be replaced simply by checking the items in the list. Of course, once you run out of ideas to test the actual block, it never hurts to check such a list. However, such sheets by their nature may contain only generalizations that may or may not apply to a specific project and a specific class for testing. But you probably have the experience and the mind to find good test cases for your specific units :-)
Pรฉter Tรถrรถk
source share