.net - Visual Studio Test Explorer error: An exception occurred while initializing the database. See the InnerException for details -


i using visual studio 2013. have 2 branches.

test explorer works fine on branch not on branch b. following error in test output window:

------ discover test started ------ **an exception occurred while initializing database. see innerexception details.** ========== discover test finished: 4530 found (0:00:07.34) ========== 

as can see, seems discover tests not populate test explorer window.

what database use? there project specific cache remove?

i use resharper tried turning unit test engine off did not help. have done rebuilds cleans etc. no avail.

i installed vs 2015 not yet using it? issue?

any appreciated.

i had issue today, resolve did following:

  1. close visual studio 2015 , open visual studio 2013
  2. click tools > options > database tools > data connections , change sql server instance name (localdb)\mssqllocaldb
  3. close visual studio 2013
  4. open task manager , end sql server windows nt - 64 bit processes
  5. use windows explorer navigate location of solution , find folder called testresults
  6. delete folders , files folder including tests.mdf files
  7. open visual studio 2013, build solution , tests should discover , run

hope helps :)


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -