What are unit testing and integration testing, and what other types of testing should I know about?

后端 未结 9 2198
感动是毒
感动是毒 2020-12-22 22:42

I\'ve seen other people mention several types of testing on Stack Overflow.

The ones I can recall are unit testing and integration testing. Especially unit testing i

9条回答
  •  天涯浪人
    2020-12-22 23:14

    Off the top of my head:

    • Unit testing in the sense of "testing the smallest isolatable unit of an application"; this is typically a method or a class, depending on scale.
    • Integration testing
    • Feature testing: this may cut across units, and is the focus of TDD.
    • Black-box testing: testing only the public interface with no knowledge of how the thing works.
    • Glass-box testing: testing all parts of a thing with full knowledge of how it works.
    • Regression testing: test-cases constructed to reproduce bugs, to ensure that they do not reappear later.
    • Pointless testing: testing the same basic case more than one way, or testing things so trivial that they really do not need to be tested (like auto-generated getters and setters)

提交回复
热议问题