Justin Harvey
Justin Harvey

Reputation: 14682

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.

Upvotes: 3

Views: 1995

Answers (2)

RobSiklos
RobSiklos

Reputation: 8849

Remove the testsettings file - even if it's not referenced, it still affects what's going on (see https://stackoverflow.com/a/17111357/270348)

Upvotes: 0

RobSiklos
RobSiklos

Reputation: 8849

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

Upvotes: 1

Related Questions