I been working really hard lately to get VSTS to play nice with Unit Test projects for Android and iOS. This is what I have/want:
Couple of things iOS is now fully working for me. I found a great tool that Rolf created (Touch.Server) which I followed a certain guide to make it play nice with VSTS and output the results to a directory and then read it from there. The "Touch.Server" will automatically Run the device on my Mac agent and then put the test results into a directory (yay! awesome).
So now I want to do the same with Android and get the unit tests automated so I can run my unit tests as well. (Currently I have the VSTS build and hockeyapp deployment all done). Meaning I would need some kinda way to run the Android emulator through VSTS (I am thinking adb tool together with "Command Line Task") -> output a Results XML by doing an adb pull and then grab those results with the publish unit tests Task.
So I Instrumented my Android and it works locally (yay!). So I can run tests through command line with an adb instrument command. So next up I think I am going to:
However this seems really extensive and might give me headaches to setup on my Mac agent (that I have full root access to). Is there a better way kinda like Touch.Server. Did Xamarin ever think of creating a new step to support Android and iOS unit test projects where we specify emulator and the unit test project and does this automagically ?
Let me know guys if anyone comes up with a great idea to help me out here with the Android unit tests project CI build/run.