Unit Testing for the Window Phone Application

I am new to Windows Phone development and Visual Studio. I am writing a Windows Phone Application for Visual Studio Express for Windows. There are several WinRT components in this application. To unit test this application, I used the Windows Phone unit test App. This test application works on Windows phone. Is there anything for a Windows phone from which I can unit test the app apis on the desktop itself, if so how can I achieve this?

Is there any support for a windows phone maven plugin that does unit testing?

The main idea is to integrate it with a continuous integration server

Thanks in Advance

+3


source to share


1 answer


You can put the API in a portable class library and test it with other testing tools on your computer (as opposed to WP / Windows applications, xUnit and other great testing frameworks that support PCL).

Alternatively, to test WP applications, you can do this on your computer by running them in the emulator.



To do this all automatically, take a look at mstest.exe or even better: the new vstest.console.exe which is used to test application modules. Depending on what exactly you want to do, this or this might help :)

+2


source







All Articles