Writing standards for unit testing

前端 未结 10 931
自闭症患者
自闭症患者 2021-01-31 12:05

I plan to introduce a set of standards for writing unit tests into my team. But what to include?

These two posts (Unit test naming best practices and Best practices for

10条回答
  •  走了就别回头了
    2021-01-31 12:41

    Make sure to include what is not an unit tests. See: What not to test when it comes to Unit Testing?

    Include a guideline so integration tests are clearly identified and can be run separately from unit tests. This is important, because you can end with a set of "unit" tests that are really slow if the unit tests are mixed with other types of tests.

    Check this for more info on it: How can I improve my junit tests ... specially the second update.

提交回复
热议问题