Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们(皇家我们)有许多单元测试(几千个)。有些仍然依赖于外部服务,因为在编写它们时,服务依赖关系没有被删除。VCR 被用作对此进行分类的一种方式。
我花时间清理这些旧测试(将其视为禅宗练习)并且我有一些工作分支(每个分支本质上构成特定组件的测试套件[模型/控制器/等..]。但是我想能够为仍然依赖于外部服务的大量(约 100 个)测试文件禁用单元测试
我能够通过添加--nounit为命令行参数来实现这一点
--nounit