什么是单元测试和集成测试,我还应该知道哪些其他类型的测试? [英] What are unit testing and integration testing, and what other types of testing should I know about?

查看:101
本文介绍了什么是单元测试和集成测试,我还应该知道哪些其他类型的测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到其他人提到了关于Stack Overflow的几种测试.

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 is mentioned a lot. What exactly is unit testing? What is integration testing? What other important testing techniques should I be aware of?

编程不是我的专业,但我希望有一天;关于生产等方面的东西也受到欢迎.

Programming is not my profession, but I would like it to be some day;stuff about production etc is welcomed too.

推荐答案

离我远去:

  • 单元测试,即测试应用程序的最小可隔离单元";这通常是方法或类,具体取决于规模.
  • 集成测试
  • 功能测试:这可能涉及多个单元,这是TDD的重点.
  • 黑盒测试:仅测试公共界面,而不了解事物的工作原理.
  • 玻璃箱测试:在完全了解事物工作原理的情况下测试事物的所有部分.
  • 回归测试:用于重现错误的测试用例,以确保以后不会再次出现.
  • 无意义的测试:以一种以上的方式测试相同的基本案例,或者测试琐碎的东西以至于真的不需要进行测试(例如自动生成的getter和setter)
  • 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)

这篇关于什么是单元测试和集成测试,我还应该知道哪些其他类型的测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆