What are key points to explain Unit Testing

前端 未结 6 2187
一个人的身影
一个人的身影 2021-02-09 19:06

I want to introduce Unit Testing to some colleagues that have no or little experience with Unit Testing. I\'ll start with a presentation of about an hour to explain the concept

6条回答
  •  青春惊慌失措
    2021-02-09 19:41

    Main points:

    • unit tests help both design (by expressing intent) and regression test (by never going away) code;
    • unit tests are for lazy programmers who don't want to debug their code again;
    • tests have no business of influencing or affecting business logic and functionality, but they do test it fully;
    • unit tests demand the same qualities as regular code: theory and strategy, organization, patterns, smells, refactoring;

提交回复
热议问题