KarmaTestAdapter icon indicating copy to clipboard operation
KarmaTestAdapter copied to clipboard

Tries to connect to all databases that have a connectionstring defined on project startup

Open fredrikholm opened this issue 9 years ago • 3 comments

My project(s) have 4 connectionstrings in web.config, one for the "real" DB and the rest for test databases (SQL Server). The test DBs are deleted after each test run.

Whenever I start my solution (VS2015 Community edition) VS tries to connect to all of those databases, which throws an error since the databases does not exist. This behaviour stops if I disable Karma Test Adapter.

It seems like others experience the same behaviour as well (top link in this result): https://www.google.se/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=visual%20studio%20karma%20test%20adapter%20tries%20to%20open%20all%20databases%20in%20the%20connection%20string

Great product apart from this minor glitch! :-)

fredrikholm avatar Oct 19 '15 06:10 fredrikholm

I'm also seeing this same behavior, though this may be a duplicate of #32 . Perhaps that should be re-opened?

mklaber avatar Dec 28 '15 18:12 mklaber

This has also been happening to me.

mikecg avatar Mar 09 '16 18:03 mikecg

+1 Happens to us as well, multiple machines. Uninstalling the test runner fixes it.

brandonwittwer avatar Feb 16 '17 16:02 brandonwittwer