How do you tell that your unit tests are correct?

后端 未结 16 1398
广开言路
广开言路 2020-12-28 16:23

I\'ve only done minor unit testing at various points in my career. Whenever I start diving into it again, it always troubles me how to prove that my tests are correct. How

16条回答
  •  梦谈多话
    2020-12-28 16:37

    I guess writing the test first (before writing the code) is a pretty good way of being sure your test is valid.

    Or you could write tests for your unit tests... :P

提交回复
热议问题