Open maxkatz6 opened 11 months ago
@maxkatz6 Do you know of any implementations of the headless platform that you could link here? Would really appreciate it :)
Avalonia.Controls.TreeDataGrid uses headless tests:
Are there any plans to include this in an upcomming release? I'm going through the process of writing some tests for my app now and am really wishing I had a templated project or a delibirate/ containerized example of the setup for these headless tests to go off of. Refrences to UnitTest in source are usefull, but for me as a bit of a novice they can be a bad place to start learning. Maybe this just a criticism of myself idk, either way this is definetly something I'd find useful personaly.
@10Peppermill we have some generic samples as well: https://github.com/AvaloniaUI/Avalonia.Samples/tree/main/src/Avalonia.Samples/Testing/TestableApp.Headless.XUnit. If it might help.
@maxkatz6 Oh I wasn't able to find these on my own, thank you so muchI
Is your feature request related to a problem? Please describe.
It would greatly improve the adoption of Headless testing if we ship testing templates as well
Describe the solution you'd like
Two templates based on Nunit and Xunit with:
Possibly a third template with a whole solution together (xplat?) and sharing application between them?
Describe alternatives you've considered
No response
Additional context
Headless platform documentation https://docs.avaloniaui.net/docs/next/concepts/headless/