Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 524 Bytes

Unit-Tests.md

File metadata and controls

11 lines (7 loc) · 524 Bytes

Unit Tests

Three Laws of Test Driven Development

  1. You may not write production code until you have written a failing unit test.
  2. You may not write more of a unit test than is sufficient to fail, and compiling is not failing.
  3. You may not write more production code than is sufficient to pass the currently failing test.

Keep Tests Clean

Test code is just as important as production code. It is not a second-class citizen. It requires thought, design, and care. It must be kept as clean as production code.