Creates XAML unit tests for GitHub issues in the Controls.Xaml.UnitTests project. Tests XAML parsing, compilation (XamlC), and source generation. Use when testing XAML-specific behavior, not UI interactions.
80
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Creates XAML unit tests that verify XAML parsing, XamlC compilation, and source generation behavior.
write-ui-tests skillwrite-ui-tests skillwrite-ui-tests skillBefore invoking, ensure you have:
cat .github/instructions/xaml-unittests.instructions.mdThis contains the authoritative conventions for:
MauiXXXXX.xaml and MauiXXXXX.xaml.cs)src/Controls/tests/Xaml.UnitTests/Issues/)[Values] XamlInflatorMockCompilerMockSourceGenerator.rt.xaml, .rtsg.xaml, .rtxc.xaml)Following the conventions from Step 1, create:
src/Controls/tests/Xaml.UnitTests/Issues/MauiXXXXX.xamlsrc/Controls/tests/Xaml.UnitTests/Issues/MauiXXXXX.xaml.cs# Build the test project
dotnet build src/Controls/tests/Xaml.UnitTests/Controls.Xaml.UnitTests.csproj -c Debug --no-restore -v q
# Run specific test
dotnet test src/Controls/tests/Xaml.UnitTests/Controls.Xaml.UnitTests.csproj --filter "FullyQualifiedName~MauiXXXXX" --no-buildAfter completion, report:
✅ XAML unit test created for Issue #XXXXX
**Files:**
- `src/Controls/tests/Xaml.UnitTests/Issues/MauiXXXXX.xaml`
- `src/Controls/tests/Xaml.UnitTests/Issues/MauiXXXXX.xaml.cs`
**Test method:** `DescriptiveTestName`
**Inflators tested:** Runtime, XamlC, SourceGen
**Verification:** Tests [PASS/FAIL] as expected.github/instructions/xaml-unittests.instructions.mdsrc/Controls/tests/Xaml.UnitTests/src/Controls/tests/Xaml.UnitTests/Issues/6a24ec5
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.