-
Notifications
You must be signed in to change notification settings - Fork 107
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 tests are not discovered (and run) in a .Net9 UWP application #1943
Comments
As a sanity check, can you verify whether they work with just MSTest 3.8.2 and that preview test SDK? |
I've tried with a basic xUnit test project. And everything stops to work as soon as I'm adding |
Can you do a sanity check with MSTest as well? I'd like to understand if it's just xUnit here causing issues. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0-preview-25107-01" />
<PackageReference Include="MSTest" Version="3.8.2" /> |
If I just have mstest tests, everything is working |
Ah, I see. This might be a bug in xUnit then, they might need to do some tweaks to make UWP .NET 9 work. Perhaps we should open an issue in their repo and link it to this one, so they can track it? In the meantime, is this blocking you, or could you move to MSTest so that your test can keep working without needing them to update things on their end? |
I've opened xunit/xunit#3219 in xUnit repo. |
Description
I've converted an UWP test application using xUnit to .Net 9 + AOT.
The xUnit tests are not discovered (and not run).
Steps To Reproduce
Only the
msTest.Test
test is run.Expected Behavior
All the tests should run.
Version Info
TargetFramework = net9.0-windows10.0.26100.0
Microsoft.NET.Test.Sdk = 17.14.0-preview-25107-01
MSTest = 3.8.2
xunit = 2.9.3
xunit.runner.visualstudio = 3.0.2
Additional Context
Sample test application: UnitTests.zip
The text was updated successfully, but these errors were encountered: