本文介绍了单元测试类是否应该与其余代码一起保持在版本控制之下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我为开发项目创建测试套件,这些类是否应该与项目代码的其余部分一起处于版本控制之下?

If I create a test suite for a development project, should those classes be kept under version control with the rest of the project code?

推荐答案

是的,没有理由不将它们置于源代码管理中.如果测试发生变化怎么办?如果接口发生变化,需要更改测试怎么办?

Yes, there is no reason not to put them in source control. What if the tests change? What if the interfaces change, necessitating that the tests change?

这篇关于单元测试类是否应该与其余代码一起保持在版本控制之下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 11:56