Skip to main content

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.

TaskGuide
Install the correct adapterPackages and compatibility
Test controls, binding, focus, and commandsHeadless platform
Choose an input, tree, or automation APITesting helpers
Test touch, keyboard, mouse, and gesturesInput and gestures
Find controls and compare their structureControl finder
Write Selenium-style interaction sequencesDriver and elements
Capture images, animations, or test videosRendering and screen recording
Run the suite in a build pipelineCI and containers
Release ProTest packagesPublishing

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.