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.
有没有办法以编程方式跳过数据驱动单元测试中的行?我想在我们的构建服务器上运行所有行,但调试时只运行一行。
您可以做的是生成一个仅在一行上执行其操作的测试。然后创建另一个单行测试,调用单行测试。将此作为您实际的数据驱动测试。
在您的夜间构建过程中包含数据驱动(骨架)测试,并在调试期间使用单行测试。