Unit-testing multithreaded applications

前端 未结 4 1228
不思量自难忘°
不思量自难忘° 2021-01-06 09:16

Has anyone got any advice or know of any frameworks for unit-testing of multithreaded applications?

4条回答
  •  醉梦人生
    2021-01-06 10:03

    Do not test multithreaded applications. Refactor the code to remove coupling between work that is done in different threads. Then test it separately.

提交回复
热议问题