
Clean Code – How to Write Amazing Unit Tests
Coding Blocks
00:00
You May Not Write Production Code Until You Have Written a Failing Unit Test
The three laws of d you may not write production code until you have written a failing unit test. You may not write more of a unit test than is sufficient to fail an compiling his failing and you can't write more production code than is necessary to pass the currently failed test. But i i think the word law is a bit strong here, because a lot of production code bases on good luck even getting a test written. It's so hard to to do that in the begin in the beginning,. I guess you could write the test, but it's just going to take a lot of code to get that first one passing. If you do true unit test and true enterprise application, not enterprise
Transcript
Play full episode