Open mrucker opened 1 month ago
Here are answers I've found so far:
adb shell am instrument
to run tests on Android devices. This means more information about test running options can be found here (with a little bit of work to translate between the two). That means, for example, if working in .NET Android land you care about Android.App.Instrumentation.mlaunch
, an undocumented executable from the Xamarin project.AndroidApplicationEntryPoint
to implement their HeadlessTestRunner
but then write their own Android.App.Instrumentation
class that calls HeadlessTestRunner
.Hello @mrucker!
You are correct on most of the points. Xharness is a testing utility tool developed to make testing .NET applications on mobile platforms (Android, iOS, WebAssembly) easier by utilizing external tools like adb/mlaunch for device communication management. It is mainly used in our testing/CI environments but it can be used in your local environment as well.
The READMEs and the source code is currently afaik the only available documentation. However, we do have a community discord server https://aka.ms/dotnet-discord where you can ask questions in different channels. I would suggest you join us there and post a question in any of the following: #maui, #apple, #android, #webassembly, ... (feel free to ping me - my tag is: ivanpovazan).
Thanks! That's exactly what I was wondering. I thought there might be a discord server. I'm also hoping to use it for testing/CI. Thank you all for making the tool.
I'm a senior .NET developer who has been trying to learn how to use xharness for several days.
Any help would be greatly appreciated because I'm fairly certain what you've built is what I've been looking for I'm just struggling to make heads or tails of how to use it.