Skip to content

14.单元测试、集成测试、系统测试区别? #14

@webVueBlog

Description

@webVueBlog
Member

一、测试方法不同

1、单元测试属于白盒测试范畴。

2、集成测试属于灰盒测试范畴。

3、系统测试属于黑盒测试范畴。

二、考察范围不同

1、单元测试主要测试单元内部的数据结构、逻辑控制、异常处理等。

2、集成测试主要测试模块之间的接口和接口数据传递关系,以及模块组合后的整体功能。

3、系统测试主要测试整个系统相对于需求的符合度。

三、评估基准不同

1、单元测试的评估基准主要是逻辑覆盖率。

2、集成测试的评估基准主要是接口覆盖率。

3、系统测试的评估基准主要是测试用例对需求规格的覆盖率。

  1. Different test methods

  2. Unit test belongs to the category of white box test.

  3. Integration test belongs to the gray box test category.

  4. System test belongs to the black box test category.

Two, the scope of investigation is different

  1. Unit test mainly tests the internal data structure, logical control, exception handling, etc.

  2. Integration test mainly tests the interface and interface data transfer relationship between modules, as well as the overall function after module combination.

  3. System test mainly tests the compliance degree of the whole system relative to requirements.

Three, the evaluation basis is different

  1. The evaluation benchmark of unit tests is mainly logic coverage.

  2. The evaluation benchmark for integration testing is mainly interface coverage.

  3. The evaluation benchmark of system test is mainly the coverage of test cases to requirements specifications.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @webVueBlog

        Issue actions

          14.单元测试、集成测试、系统测试区别? · Issue #14 · weekCodeing/interview-answe