When is a Test not a Unit-test?

后端 未结 8 1343
感情败类
感情败类 2020-11-30 19:48

I am looking for rules like:

A test is not a unit-test if:

  • it communicates with a database
  • it cannot run in parallel with other tests
8条回答
  •  执念已碎
    2020-11-30 20:28

    Implementing a test across multiple possibly failing units would not be a unit test.

提交回复
热议问题