Unit-testing with dependencies between tests

前端 未结 6 2066
日久生厌
日久生厌 2020-12-14 16:49

How do you do unit testing when you have

  • some general unit tests
  • more sophisticated tests checking edge cases, depending on the general ones
6条回答
  •  一个人的身影
    2020-12-14 16:55

    According to best practices and unit testing principles unit test should not depend on other ones.

    Each test case should check concrete isolated behavior.

    Then if some test case fail you will know exactly what became wrong with our code.

提交回复
热议问题