### Description Background: * https://github.com/dotnet/maui/issues/32967 * https://github.com/dotnet/maui/pull/33117 * https://github.com/jonathanpeppers/AndroidDotNetTest * https://github.com/jonathanpeppers/iOSDotNetTest I'm filing this here as a way to track work across different repos, and have an epic that is specific to `dotnet test`. - [ ] dotnet/sdk - [ ] Add `$(TargetFramework)` selection like `dotnet run` - [ ] Add `--device` selection like `dotnet run` - [ ] dotnet/android - [x] `androidtest` template, you can `dotnet run` it: https://github.com/dotnet/android/pull/10862 - [x] Add an MTP test adapter, where `Microsoft.Android.Run` forwards tests from Android. `dotnet test` works on Android. https://github.com/dotnet/android/pull/11130 - [ ] dotnet/macios - [x] `iostest` project template, you can `dotnet run` it: https://github.com/dotnet/macios/pull/25195 - [ ] Add an MTP test adapter, where `mlaunch` forwards tests from iOS. `dotnet test` works on iOS. - [ ] dotnet/maui - [ ] Add a cross-platform `mauitest` project template - [ ] dotnet/skills - [ ] The "MAUI doctor" skill knows how to check if MTP is enabled and fix if not. - [ ] Some instruction somewhere, should be explicit that `dotnet test` works for .NET MAUI test projects - [ ] Future (needs more spec work) - [ ] Make sure `dotnet test` telemetry works (or if it needs expanded) - [ ] Make sure `dotnet test` "extensions" work, such as the Azure DevOps extension - [ ] Code coverage (another extension) ### (Public) API Changes None ### Usage Scenarios ``` dotnet new mauitest dotnet test ``` Then something amazon happens! `xharness` might not be needed for many scenarios: * https://github.com/dotnet/xharness ### Backward Compatibility n/a ### Difficulty Medium
Description
Background:
I'm filing this here as a way to track work across different repos, and have an epic that is specific to
dotnet test.$(TargetFramework)selection likedotnet run--deviceselection likedotnet runandroidtesttemplate, you candotnet runit: [dotnet test] Addandroidtestproject template anddotnet runinstrumentation support android#10862Microsoft.Android.Runforwards tests from Android.dotnet testworks on Android. [dotnet test] Add MTP test adapter for Android device testing android#11130iostestproject template, you candotnet runit: [dotnet] Add test project templates for all Apple platforms macios#25195mlaunchforwards tests from iOS.dotnet testworks on iOS.mauitestproject templatedotnet testworks for .NET MAUI test projectsdotnet testtelemetry works (or if it needs expanded)dotnet test"extensions" work, such as the Azure DevOps extension(Public) API Changes
None
Usage Scenarios
Then something amazon happens!
xharnessmight not be needed for many scenarios:Backward Compatibility
n/a
Difficulty
Medium