Using XHarness
XHarness is primarily a command line tool that enables running tests on Android, iOS, tvOS, Mac Catalyst, WASI and desktop browsers (WASM). See https://github.com/dotnet/xharness
Note
XHarness is not available on nuget.org at this time, so an additional feed is required:
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json
In order to test with XHarness, you will have to install the CLI tool first:
dotnet tool install Microsoft.DotNet.XHarness.CLI \
--global \
--version "8.0.0-prerelease*" \
--add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json
Tip
The snippets above install the XHarness tool globally. You can also remove the --global argument to install locally in the current working directory. If installed locally, prefix XHarness commands with dotnet. For example, xharness apple test becomes dotnet xharness apple test.
Platform-Specific Guides
See Also
- Using DeviceRunners CLI - The modern recommended alternative to XHarness
- Preview Packages - Feed configuration for XHarness packages