Skip to content

13.什么是单元测试和集成测试?他们各有什么特点? #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
webVueBlog opened this issue Mar 10, 2020 · 1 comment
Open
Labels
软技能 软技能

Comments

@webVueBlog
Copy link
Member

Unit testing is the lowest level of testing to be done during the software development process, where separate units of the software are tested in isolation from the rest of the program.

Integration testing is also called assembly testing, joint testing, subsystem testing, or component testing. Integration testing is the assembly of all modules into subsystems or systems according to the general design requirements on the basis of unit tests.

Features:

Unit tests heavily use white-box testing techniques to check specific paths in the module control structure to ensure full coverage and to find the maximum number of errors.

Integration testing is a systematic technique for testing and assembling software. It is to test modules while they are assembled according to the design requirements.

单元测试是在软件开发过程中要进行的最低级别的测试活动,在单元测试活动中,软件的独立单元将在与程序的其他部分相隔离的情况下进行测试。

集成测试也叫组装测试、联合测试、子系统测试或部件测试。集成测试是在单元测试的基础上,将所有模块按照概要设计要求组装成为子系统或系统。

特点:

1.单元测试大量使用白盒测试技术,检查模块控制结构中的特定路径,以确保做到完全覆盖并发现最大数量的错误。

2.集成测试是测试和组装软件的系统化技术,是把模块按照设计要求组装起来的同时进行测试,要目标是发现与接口有关的问题。

@webVueBlog webVueBlog added the 软技能 软技能 label Mar 10, 2020
@tiyunchen
Copy link

我们前端如何进行单元测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
软技能 软技能
Projects
None yet
Development

No branches or pull requests

2 participants