如何优化单位测试目标的构建时间
我们有一个4年历史的iOS应用程序,其中包括部分旧的代码库。我们正在使用快速而敏捷的Viper体系结构,并希望将TDD(测试驱动开发)用于我们的新模块(功能)。
对于TDD,您必须大量构建测试目标。但是我们的单元测试构建需要大量时间,因此实际上TDD毫无意义,因为这需要太长的时间。似乎增量构建不起作用(我认为旧的Xcode问题)
我们试图在没有主机应用的情况下具有单独的模块测试目标。这项工作,但缺点是,如果我们在测试的系统中引用该目标,则必须将所有依赖项添加到该目标。
是否有更好的方法来实现更快的单位测试汇编时间的目标,以便我们可以使用TDD?
We have an 4 years old iOS app with partly old codebase. We are using the VIPER architecture, Quick and Nimble and want to use TDD (test driven development) for our new module (feature).
For TDD you have to build the test-target a lot. But our unit test build needs a lot of time, so in fact TDD would make no sense because it would take too long time. Seems like incremental builds are not working (old Xcode problem, I think)
We have tried to have a separate module test target without an host-application. That work, but the downside is, that we have to add all dependencies to that target if we reference that in e.g. our system under test.
Is there a better way to achieve our goal for faster unit-tests compile time so that we can use TDD?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论