-
Notifications
You must be signed in to change notification settings - Fork 81
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
No test found in a WinUI 3 Unit Test App #438
Comments
We don't explicitly support WinUI 3. That said, I can't get your project to run
|
Should I enter a feature request then?
WinUI 3 projects are architecture-specific. You have to specify the platform: |
You can, but I can't promise that it will be implemented. I don't have the necessary WinUI 3 knowledge to know what's involved in getting things to run correctly, and whether that's something that's best handled by some extension project or whether it would require integration into the core framework. I would prefer something that was done externally and maintained by a third party, since I don't have the WinUI 3 knowledge necessary to ensure that the code is right and stays right. |
Alright then. That's a shame but I understand. Thanks. |
This is a follow-up to #423, as the issue is still reproducible with xunit.runner.visualstudio v3.
In short, one cannot use xUnit to run .NET tests that require package identity, like you could do with UWP.
Using the Unit Test App (WinUI 3 in Desktop) project template, and replacing the MSTest NuGet packages with the xUnit equivalents, the projects builds without errors, and tests appear in Visual Studio's Test Explorer, but they do not run. They're not discovered at runtime:
Test discovery finished: 0 Tests found in 1,2 sec
A repro project is included: UnitTestApp.zip
Thanks.
The text was updated successfully, but these errors were encountered: