Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit testing for Window Phone App

I am new to windows phone development and Visual Studio. I am writing a windows phone app on Visual Studio Express for Windows. This app has some WinRT components. To unit test this app I used Windows Phone Unit Test App. This Test app run on Windows phone. Is there anything for windows phone from which i can unit test the app apis on desktop itself if yes how can i achieve that?

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

The basic idea behind this is to integrate it with Continuous integration server

Thanks in Advance

like image 706
Shrikanth Kalluraya Avatar asked Mar 13 '26 08:03

Shrikanth Kalluraya


1 Answers

You can put the API into a Portable Class Library and test this using other testing tools on your machine (in contrast to WP/Windows apps, xUnit and other great testing frameworks support PCLs)

Furthermore, for testing WP apps, you can do this on your machine as well by running them in the emulator.

To do all these things automatically, look into mstest.exe or even better: the new vstest.console.exe which is used for app unit tests. Depending on what exactly you want to do, this or this might help :)

like image 100
sibbl Avatar answered Mar 14 '26 21:03

sibbl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!