【问题标题】:Unit tests and Integration tests definitions & Maven单元测试和集成测试定义和 Maven
【发布时间】:2013-03-18 22:55:10
【问题描述】:

您如何定义单元测试和集成测试之间的界限?

具体在哪里?层级测试在哪一部分?

相关
Terminology for integration tests which test each layer and the layers below it (Jenga tests)
What is the difference between integration and unit tests?

【问题讨论】:

    标签: unit-testing integration-testing terminology layer definition


    【解决方案1】:

    我建议使用 Apache Maven 定义:你在获得包后运行的那些测试是集成测试。

    Introduction to the Build Lifecycle

    • package - 获取编译后的代码并将其打包到它的可分发包中 格式,例如 JAR。

    • 集成测试 - 处理和部署 如有必要,将其打包到可以进行集成测试的环境中 运行

    那么层测试是单元测试的一部分。

    【讨论】:

      猜你喜欢
      • 2016-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-26
      • 2012-05-05
      • 1970-01-01
      • 1970-01-01
      • 2011-02-06
      相关资源
      最近更新 更多