ProTest documentation
ProTest runs Avalonia UI tests without a desktop window. It includes xUnit 3.x and 4.x adapters, the Avalonia headless platform, and an extensive set of testing helpers.
Start with the xUnit quick start, then choose the APIs needed by your tests.
| Task | Guide |
|---|---|
| Install the correct adapter | Packages and compatibility |
| Test controls, binding, focus, and commands | Headless platform |
| Choose an input, tree, or automation API | Testing helpers |
| Test touch, keyboard, mouse, and gestures | Input and gestures |
| Find controls and compare their structure | Control finder |
| Write Selenium-style interaction sequences | Driver and elements |
| Capture images, animations, or test videos | Rendering and screen recording |
| Run the suite in a build pipeline | CI and containers |
| Release ProTest packages | Publishing |
The packages target .NET 8 and .NET 10, with official Avalonia 12.1.4 dependencies. The original C# namespaces are retained. Select one xUnit adapter per test project.
This documentation follows Avalonia's task-oriented organization: getting started, practical guides, and API reference. The source inventory records the upstream guides and commits used for this edition.