如何组织集成测试和单元测试 [英] How-to organize integration tests and unit tests

查看:96
本文介绍了如何组织集成测试和单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在一个程序集(项目)中进行集成测试和单元测试吗?还是将它们分开?

Is it ok to have integration tests and unit tests in one assembly (project) ? Or rather have them separate ?

推荐答案

我个人更喜欢将它们放在单独的程序集中.在连续集成构建期间,可以更容易地区分它们,因为可以将工具配置为在给定的程序集中执行所有测试,例如,您可能只想运行单元测试或只运行集成测试,而这可能会花费更多时间.

Personally I prefer to put them into separate assemblies. During continuous integration builds it is easier to distinguish between them because tools can be configured to execute all tests in a given assembly and you could for example want to run only unit tests or only integration tests which might take more time.

这篇关于如何组织集成测试和单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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