.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:
- close visual studio 2015 , open visual studio 2013
- click tools > options > database tools > data connections , change sql server instance name (localdb)\mssqllocaldb
- close visual studio 2013
- open task manager , end sql server windows nt - 64 bit processes
- use windows explorer navigate location of solution , find folder called testresults
- delete folders , files folder including tests.mdf files
- open visual studio 2013, build solution , tests should discover , run
hope helps :)
Comments
Post a Comment