Using Visual Studio 2015 Community edition, I am unable to run even the most basic Universal Windows Unit Tests. Once I create a test, and try to run it through Test Explorer, the code compiles and seems to deploy the unit test windows app. The app stays up for about 10 seconds, then closes itself. The test runner's result for the test:
Inconclusive: Failed to initialize client proxy: could not connect to test process .
Running Visual Studio as an Administrator didn't seem to have any effect.
To create the sample project that caused my error:
Assert.IsTrue( true )
The Output window for the Tests option shows this:
Checking whether required frameworks are installed...
Registering the application to run from layout...
Deployment complete (3566ms). Full package name: "edd458e2-c3b1-4d8a-b7c3-5669e2fe7d75_1.0.0.0_x86__97afpx01qh2gg"
Error : DEP3000 : Attempts to stop the application failed. This may cause the deployment to fail. Exception from HRESULT: 0x92330047
Updating the layout...
Deployment complete (104ms). Full package name: "edd458e2-c3b1-4d8a-b7c3-5669e2fe7d75_1.0.0.0_x86__97afpx01qh2gg"
I had the same problem and solved it by explicitly deploying the test project and re-invoking "Run All Tests". You can also check under "Add or remove programs" whether your test project app is (deployed) installed or not. If necessary, uninstall it and deploy again.
The unit testing concept of the UWP apps is a mess :-(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With