Install
dotnet add package Shiny.Xunit.Runners.Maui --version 1.0.0
| Product | Versions |
|---|---|
| .NET |
README
Xunit.Runners.Maui
Ported From
Setup
- Create a new MAUI application.
- Delete the standard App.xaml & App.xaml.cs
- Install Xunit.Runners.Maui nuget
- Create tests in this project or reference another project containing your tests.
- Create a MauiProgram like shown below - NOTE: It is not recommended you put any dependencies here
using Xunit.Runners.Maui;
namespace Sample
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp() => MauiApp
.CreateBuilder()
.ConfigureTests(new TestOptions
{
Assemblies =
{
typeof(MauiProgram).Assembly
}
})
.UseVisualRunner()
.Build();
}
}
Changes from Previous Version
v1.0.0-alpha-0008v1.0.0
Removed Dependencies
Microsoft.Maui.Dependencies(net6.0)
Microsoft.Maui.Extensions(net6.0)
Microsoft.Maui.Dependencies(net6.0-android31.0)
Microsoft.Maui.Extensions(net6.0-android31.0)
Microsoft.Maui.Dependencies(net6.0-ios15.4)
Microsoft.Maui.Extensions(net6.0-ios15.4)
Microsoft.Maui.Dependencies(net6.0-maccatalyst15.4)
Microsoft.Maui.Extensions(net6.0-maccatalyst15.4)
Microsoft.Maui.Dependencies(net6.0-windows10.0.19041)
Microsoft.Maui.Extensions(net6.0-windows10.0.19041)
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.