Synchronization coverage: Measuring code coverage is a highly recommended practice in unit testing, but when it comes to concurrent programs, code coverage is misleading.
同步覆盖:在单元测试中极力推荐测量代码覆盖,但是在测试并行程序时使用它,代码覆盖容易产生误导。
2
But the common methodologies of unit testing, even when done thoroughly, aren't so good at finding concurrent bugs.
但是普通的单元测试方法(即使当彻底地进行了测试时)在查找并行bug方面不是很有效。
3
Because concurrent tasks in unit tests are usually small and few, they usually run to completion before the scheduler switches the thread, unless it is forced to (say, by wait ).