我们看到我们对TFS的构建花了太长时间并调查原因。然后我发现在测试运行期间的每个构建中,一些测试在最后一次测试结束后超过30秒开始。因此每次构建都浪费了大量时间!暂停发生时的模式非常随机。当我深入了解构建中的活动日志时,我注意到这些中断周围的消息:
System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. This can happen if the test(s) started a thread but did not stop it. Make sure that all the threads started by the test(s) are stopped before completion.
这是什么意思?有没有办法检查哪个测试有这个问题以及如何避免它?感谢。