An alternative is to add a TODO comment in each test rather than an outright failure.
一个可供选择的方法是在每个测试中添加一个todo注释而不是完全失败。
Obviously, production may have many more than two so it can handle the intended load, but this staging environment need only have enough servers to adequately test the failure and recovery scenarios.
很明显,产品环境拥有的服务器可以远远多于两个,这样它可以处理预定的负载,而该临时环境只需要拥有足够的服务器来充分测试故障和恢复场景即可。
Instead, they offer JUnit assertions to both signal the failure and unwind the test.
相反,他们提供了JUnit断言来通知失效或者展开测试。
应用推荐