... 强壮性测试robustness,strong testing 异常处理测试exception handing testing 负载测试stress,load testing ...
基于34个网页-相关网页
与其他许多测试框架相反,可以把Google测试框架内置的断言部署在禁用了异常处理(通常由于性能原因)的软件中。
Contrary to a lot of other testing frameworks, Google's test framework has built-in assertions that are deployable in software where exception handling is disabled (typically for performance reasons).
还请注意invoke方法声明它要throws Throwable,必须捕获异常或者让测试框架处理它,就像我做的那样。
Also note that the invoke method declares that it throws Throwable, so you either must catch it or let your testing framework handle it, as I've done.
任何线程的未处理异常都会破坏整个测试的运行,而前面提到的集成测试却需要使用多线程。
An unhandled exception on any thread will crash the entire test run, and as mentioned before, integration tests require multi-threading.
应用推荐