dotnet/maui/run-integration-tests
Claude Code and agent skill by dotnet/maui
- community
Checking that the SKILL.md file is still in the repository.
Build, pack, and run .NET MAUI integration tests locally. Validates templates, samples, and end-to-end scenarios using the local workload.
Install
npx vskill@latest install dotnet/maui/run-integration-testsSKILL.md
The same SKILL.md was published earlier as dotnet/maui/run-integration-tests.
Run Integration Tests Skill
Build the MAUI product, install local workloads, and run integration tests.
When to Use
- User asks to "run integration tests"
- User asks to "test templates locally"
- User asks to "validate MAUI build with templates"
- User wants to verify changes don't break template scenarios
- User asks to run specific test categories (WindowsTemplates, Samples, Build, Blazor, etc.)
Available Test Categories
| Category | Platform | Description | |
|---|---|---|---|
Build | All | Basic template build tests | |
WindowsTemplates | Windows | Windows-specific template scenarios | |
macOSTemplates | macOS | macOS-specific scenarios | |
Blazor | All | Blazor hybrid templates | |
MultiProject | All | Multi-project templates | |
Samples | All | Sample project builds | |
AOT | macOS | Native AOT compilation | |
RunOnAndroid | macOS | Build, install, run on Android emulator | |
RunOniOS | macOS | iOS simulator tests |
Scripts
All scripts are in .github/skills/run-integration-tests/scripts/
Run Integration Tests (Full Workflow)
Parameters
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
-Category | No | - | Test category to run (WindowsTemplates, Samples, Build, etc.) | |
-TestFilter | No | - | Custom NUnit test filter expression | |
-Configuration | No | Debug | Build configuration (Debug/Release) | |
-SkipBuild | No | false | Skip build/pack step if already done | |
-SkipInstall | No | false | Skip workload installation if already done | |
-SkipXcodeVersionCheck | No | false | Skip Xcode version validation (macOS) | |
-AutoProvision | No | false | Automatically provision local SDK if not found | |
-ResultsDirectory | No | artifacts/integration-tests | Directory for test results |
Workflow Steps
The script performs these steps:
- Build & Pack:
.\build.cmd -restore -pack -configuration $Configuration - Install Workloads:
.dotnet\dotnet build .\src\DotNet\DotNet.csproj -t:Install -c $Configuration - Extract Version: Reads MAUI_PACKAGE_VERSION from installed packs
- Run Tests:
.dotnet\dotnet test ... -filter "Category=$Category"
Example Usage
Prerequisites
- Windows for WindowsTemplates, macOS for macOSTemplates/RunOniOS/RunOnAndroid
- .NET SDK (version from global.json)
- Sufficient disk space for build artifacts
- Local SDK and workloads must be provisioned first
Provisioning the Local SDK (Required First Time)
Before running integration tests, you must provision the local .NET SDK and MAUI workloads:
Verification:
Note: The old./build.sh --target=dotnetsyntax no longer works. Usedotnet cakedirectly.
Output
- Test results in TRX format at
<ResultsDirectory>/ - Build logs in
artifacts/directory - Console output with test pass/fail summary
Troubleshooting
| Issue | Solution | |||
|---|---|---|---|---|
| "MAUI_PACKAGE_VERSION was not set" | Ensure build step completed successfully | |||
| "Local .dotnet SDK not found" | Run dotnet tool restore && dotnet cake --target=dotnet && dotnet cake --target=dotnet-local-workloads | |||
| Template not found | Workload installation may have failed | |||
| Build failures | Check artifacts/log/ for detailed build logs | |||
| "Cannot proceed with locked .dotnet folder" | Kill processes using .dotnet: `Get-Process \ | Where-Object { $_.Path -like "\.dotnet\" } \ | ForEach-Object { Stop-Process -Id $_.Id -Force }` | |
| Session times out / becomes invalid | Integration tests are long-running (15-60+ min). Run manually in a terminal window instead of via Copilot CLI | |||
| Tests take too long | Start with Build category (fastest), then run others. Use -SkipBuild -SkipInstall if workloads are already installed | |||
| iOS tests fail with "mlaunch exited with 1" | Simulator state issue. Run individual tests instead of the whole category (see below) | |||
| iOS simulator state errors (code 137/149) | Reset simulator: xcrun simctl shutdown all && xcrun simctl erase all or run tests individually |
Running Manually (Recommended for Long-Running Tests)
Integration tests can take 15-60+ minutes depending on the category. For best results, run directly in a terminal:
Running All Categories Sequentially
Running Individual iOS Tests (Recommended)
Running all iOS tests together (-Category "RunOniOS") can cause simulator state issues. For better reliability, run tests individually:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/run-integration-tests/SKILL.md
Popularity
- Repository stars
- 23,322
- Repository forks
- 1,985
- 7-day trend score
- 50
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dotnet/maui/run-integration-tests)