write-ui-tests

Generate MAUI UI tests from GitHub issue descriptions to reproduce bugs.

23.3k|2.0k|Updated May 8, 2020
One-click install
npx skills add https://github.com/dotnet/maui --skill write-ui-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-ui-tests
Source: https://github.com/dotnet/maui/tree/main/.github/skills/write-ui-tests
Command: npx skills add https://github.com/dotnet/maui --skill write-ui-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps QA and developers ensure MAUI UI bugs are reproducible by automatically generating UI tests that reproduce a GitHub issue and iterating until failure proves the bug reproduction.

Core Features & Use Cases

  • Automated reproduction tests: Generate UI tests that reproduce the issue in a MAUI host app.
  • Iteration until failure verification: Re-run and refine tests until they fail, demonstrating the bug can be reproduced.
  • End-to-end workflow: From issue description to host app page, test class, and NUnit verification, with a platform-agnostic approach.

Quick Start

Use the write-ui-tests skill to generate UI tests for a given Issue number (e.g., IssueXXXXX), following the host-app and test project templates.

Frequently Asked Questions about write-ui-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reproduce a MAUI UI bug with an automated test?

To reproduce a MAUI UI bug with an automated test, provide a GitHub issue description to generate targeted UI tests. The tool iteratively refines these tests until they fail, proving the bug is successfully reproduced across Android, iOS, MacCatalyst, and Windows platforms.

How do I generate NUnit tests from a GitHub issue for a .NET MAUI app?

Generating NUnit tests from a GitHub issue involves parsing the issue description to auto-generate a matching host app page and test class. It configures the HostApp and Test projects to ensure deterministic test execution for MAUI bug verification.

Does automated UI testing work across all MAUI target platforms?

Automated UI testing works across all MAUI target platforms, specifically covering Android, iOS, MacCatalyst, and Windows. The skill ensures the host app and test projects are correctly configured and compiled to support deterministic test execution on each platform.

Why do my generated UI tests need to fail to verify a bug?

Generated UI tests need to fail to verify a bug because a failing test proves the issue is successfully reproduced. The tool iterates and refines the automated tests until they explicitly fail, demonstrating that the MAUI UI bug exists in the host app.

What do I need to set up before generating UI tests for a .NET MAUI issue?

Before generating UI tests for a .NET MAUI issue, you need a GitHub issue description and existing HostApp and Test project templates. The tool uses these templates to configure the verification script and compile the projects for deterministic test execution.

Can I use this approach to add tests to existing MAUI issues that lack verification?

Yes, you can use this approach to add tests to existing MAUI issues that lack verification. The tool applies to issues lacking tests by auto-generating a host app page and NUnit test class from the issue description to establish bug reproduction.