如何组织集成测试和单元测试
可以在一个程序集(项目)中进行集成测试和单元测试吗?或者更确切地说让它们分开?
Is it ok to have integration tests and unit tests in one assembly (project) ? Or rather have them separate ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我个人更喜欢将它们放入单独的程序集中。在持续集成构建期间,更容易区分它们,因为可以将工具配置为执行给定程序集中的所有测试,并且您可能只想运行单元测试或仅运行可能需要更多时间的集成测试。
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.