タグ

2017年1月13日のブックマーク (1件)

  • A Set of Unit Testing Rules

    Let's Reconsider That A Set of Unit Testing Rules by Michael Feathers September 9, 2005 Teams that adopt agile practices often adopt Test Driven Development (TDD), which means, of course, that they end up writing a lot of tests. In general, that�s great but there is a failure case for teams that attempt to get test infected; you can end up writing very slow tests that take so long to run that they

    sobataro
    sobataro 2017/01/13
    “A test is not a unit test if: It talks to the database It communicates across the network It touches the file system It can't run at the same time as any of your other unit tests You have to do special things to your environment (such as editing config files) to run it. ”