Skip to content

Can I create a headless app with an OpenGL context for my unit tests? #15761

Answered by maxkatz6
nateglasser asked this question in Q&A
Discussion options

You must be logged in to vote

Currently it's not possible, and headless platform doesn't use any hardware acceleration.

You can try testing with Appium, basically running a real app with a real window, but whole setup is pretty difficult - https://github.com/AvaloniaUI/Avalonia.Samples/tree/main/src/Avalonia.Samples/Testing/TestableApp.Appium

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nateglasser
Comment options

Answer selected by nateglasser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants