Even when such systems are available, the test data may not be suitable for exercising all code paths; that is, it may be difficult to simulate some error conditions.
即使在这些系统可用时,测试数据也可能不适于使用所有代码路径;也就是说,模拟一些错误条件可能会很困难。
It is very important that you test error conditions in your code.
测试您的代码中的错误情况非常重要。
This can make test writing simpler and less error-prone, and also result in test code that is shorter and more readable.
这会简化测试的编写并减少错误,还会使测试更简短、可读性更好。
应用推荐