{"action":"created","issue":{"url":"https://api.github.com/repos/martincostello/sqllocaldb/issues/7","labels_url":"https://api.github.com/repos/martincostello/sqllocaldb/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/martincostello/sqllocaldb/issues/7/comments","events_url":"https://api.github.com/repos/martincostello/sqllocaldb/issues/7/events","html_url":"https://github.com/martincostello/sqllocaldb/issues/7","id":96414417,"number":7,"title":"Cannot use SqlLocalDb with code coverage in VS 2015","user":{"login":"jabbera","id":301208,"avatar_url":"https://avatars.githubusercontent.com/u/301208?v=3","gravatar_id":"","url":"https://api.github.com/users/jabbera","html_url":"https://github.com/jabbera","followers_url":"https://api.github.com/users/jabbera/followers","following_url":"https://api.github.com/users/jabbera/following{/other_user}","gists_url":"https://api.github.com/users/jabbera/gists{/gist_id}","starred_url":"https://api.github.com/users/jabbera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabbera/subscriptions","organizations_url":"https://api.github.com/users/jabbera/orgs","repos_url":"https://api.github.com/users/jabbera/repos","events_url":"https://api.github.com/users/jabbera/events{/privacy}","received_events_url":"https://api.github.com/users/jabbera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"martincostello","id":1439341,"avatar_url":"https://avatars.githubusercontent.com/u/1439341?v=3","gravatar_id":"","url":"https://api.github.com/users/martincostello","html_url":"https://github.com/martincostello","followers_url":"https://api.github.com/users/martincostello/followers","following_url":"https://api.github.com/users/martincostello/following{/other_user}","gists_url":"https://api.github.com/users/martincostello/gists{/gist_id}","starred_url":"https://api.github.com/users/martincostello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martincostello/subscriptions","organizations_url":"https://api.github.com/users/martincostello/orgs","repos_url":"https://api.github.com/users/martincostello/repos","events_url":"https://api.github.com/users/martincostello/events{/privacy}","received_events_url":"https://api.github.com/users/martincostello/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-07-21T20:56:32Z","updated_at":"2015-07-22T12:35:34Z","closed_at":null,"body":"I don't know if this happened in previous visual studio versions, but creating a unit test with the following body and running with code coverage:\r\n\r\n        [TestMethod]\r\n        public void TestMethod1()\r\n        {\r\n            SqlLocalDbApi.CreateInstance(\"MikeTest\");\r\n        }\r\n\r\nResults in the following error which I have been unable to work around. This has to a fairly common use case so I'm, hoping for some insight. I didn't see anything on the wiki about it.\r\n\r\nTest Name:\tTestMethod1\r\nTest FullName:\tUnitTestProject1.UnitTest1.TestMethod1\r\nTest Source:\tc:\\users\\mbarry\\documents\\visual studio 2015\\Projects\\UnitTestProject1\\UnitTestProject1\\UnitTest1.cs : line 12\r\nTest Outcome:\tFailed\r\nTest Duration:\t0:00:00.1879061\r\n\r\nResult StackTrace:\t\r\nat System.Data.SqlLocalDb.SqlLocalDbApi.InvokeThrowOnError(Func`1 func, Int32 traceEventId, String instanceName)\r\n   at System.Data.SqlLocalDb.SqlLocalDbApi.CreateInstance(String instanceName, String version)\r\n   at System.Data.SqlLocalDb.SqlLocalDbApi.CreateInstance(String instanceName)\r\n   at UnitTestProject1.UnitTest1.TestMethod1() in c:\\users\\mbarry\\documents\\visual studio 2015\\Projects\\UnitTestProject1\\UnitTestProject1\\UnitTest1.cs:line 13\r\nResult Message:\t\r\nTest method UnitTestProject1.UnitTest1.TestMethod1 threw exception: \r\nSystem.Data.SqlLocalDb.SqlLocalDbException: Error occurred during LocalDB instance startup: SQL Server process failed to start.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/martincostello/sqllocaldb/issues/comments/123706932","html_url":"https://github.com/martincostello/sqllocaldb/issues/7#issuecomment-123706932","issue_url":"https://api.github.com/repos/martincostello/sqllocaldb/issues/7","id":123706932,"user":{"login":"martincostello","id":1439341,"avatar_url":"https://avatars.githubusercontent.com/u/1439341?v=3","gravatar_id":"","url":"https://api.github.com/users/martincostello","html_url":"https://github.com/martincostello","followers_url":"https://api.github.com/users/martincostello/followers","following_url":"https://api.github.com/users/martincostello/following{/other_user}","gists_url":"https://api.github.com/users/martincostello/gists{/gist_id}","starred_url":"https://api.github.com/users/martincostello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martincostello/subscriptions","organizations_url":"https://api.github.com/users/martincostello/orgs","repos_url":"https://api.github.com/users/martincostello/repos","events_url":"https://api.github.com/users/martincostello/events{/privacy}","received_events_url":"https://api.github.com/users/martincostello/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T12:35:34Z","updated_at":"2015-07-22T12:35:34Z","body":"One last question: presumably this works fine in 2013, it's just 2015 that's got the problem?"}}