Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XUnit/NUnit headless templates #223

Open
maxkatz6 opened this issue Jul 13, 2023 · 5 comments
Open

XUnit/NUnit headless templates #223

maxkatz6 opened this issue Jul 13, 2023 · 5 comments

Comments

@maxkatz6
Copy link
Member

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:

  • Avalonia app initialization
  • Simple test with button click assert
  • Link to the documentation for more info

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/

@jameswallacew8
Copy link

@maxkatz6 Do you know of any implementations of the headless platform that you could link here? Would really appreciate it :)

@grokys
Copy link
Member

grokys commented Oct 2, 2023

Avalonia.Controls.TreeDataGrid uses headless tests:

https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/tree/master/tests/Avalonia.Controls.TreeDataGrid.Tests

@10Peppermill
Copy link

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.

@maxkatz6
Copy link
Member Author

@10Peppermill
Copy link

@maxkatz6 Oh I wasn't able to find these on my own, thank you so muchI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants