Test Desiderata 8/12: Tests Should Be Isolated (from each other)

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

ความคิดเห็น • 3

  • @jasoncubic3097
    @jasoncubic3097 4 ปีที่แล้ว +3

    This playlist is great. I feel like I am starting to understand testing a lot better now. I'm going to dig in and finally learn TDD.

  • @phyzix_phyzix
    @phyzix_phyzix 3 ปีที่แล้ว +4

    You should clean up before AND after each test. Especially with external services. In case your application crashes during a test, when you rerun all the tests you need to make sure you're in a clean state.

  • @Skarsnik101
    @Skarsnik101 4 ปีที่แล้ว +2

    Cleaning up after yourself is great until a test errors and causes a whole bunch of other patsy tests to fail. While if your tests assure that everything is setup for them to succeed you won't have that problem.