简体   繁体   中英

Exception running unit tests with Fakes on build server

I am getting the following error

Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: UnitTestIsolation instrumentation failed to initialize. Please restart Visual Studio and rerun this test

I have VS2012 and they run locally fine. Build server is TFS2012. I have tried using the DefaultTemplate.11.1.xaml and also removing the reference to the test settings file.

I'm running out of ideas now, so any help welcomed.

Are you using mstest or the Visual Studio Test Runner? According to https://stackoverflow.com/a/15608129/270348 , the latter is required.

删除testsettings文件 - 即使它没有被引用,它仍然会影响正在发生的事情(请参阅https://stackoverflow.com/a/17111357/270348

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM