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

Cannot run UWP tests with 3.6.2 #4371

Open
jnyrup opened this issue Dec 17, 2024 · 2 comments
Open

Cannot run UWP tests with 3.6.2 #4371

jnyrup opened this issue Dec 17, 2024 · 2 comments

Comments

@jnyrup
Copy link
Contributor

jnyrup commented Dec 17, 2024

Describe the bug

After upgrading from 3.6.1 to 3.6.4 I could no longer run tests from UWP.Specs in Visual Studio.

v3.6.2 was the first version that no longer worked for me.
I suspect it being related to #3949 as if I remove these three lines
https://github.com/microsoft/testfx/pull/3949/files#diff-9dfba7d4ed3c8c0e52817be015e3b388f7e1cd95cd6301c04684b604d720cb99R37-R39
or explicitly set <EnableMSTestV2CopyResources>false</EnableMSTestV2CopyResources> in my csproj the test is again runnable.

Steps To Reproduce

  1. Clone https://github.com/fluentassertions/fluentassertions
  2. Checkout c050f6bcaec68195f1d0dd0e44d233c6bbecf033
  3. Open FluentAssertions.sln
  4. Change to release mode.
  5. Right click on UWP.Specs and select build (the project is excluded from the configuration manager)
  6. See that Determining_caller_identity_should_not_throw_for_native_programs is runnable and succeeds.
  7. Edit Tests\UWP.Specs\UWP.Specs.csproj to use 3.6.2
  8. Build UWP.Specs again
  9. See that Determining_caller_identity_should_not_throw_for_native_programs is no longer runnable.

Expected behavior

Determining_caller_identity_should_not_throw_for_native_programs should succeed

Actual behavior

Determining_caller_identity_should_not_throw_for_native_programs is not runnable from VS

Additional context

@Evangelink
Copy link
Member

Perfect timing @jnyrup! I was about to start release of 3.7, including into that milestone so we fix and ship tomorrow.

@Evangelink Evangelink added this to the MSTest 3.7 / Platform 1.5 milestone Dec 17, 2024
@Evangelink
Copy link
Member

Unrelated to your issue but as I am building I noticed:

Image

MSTest is also supporting the new platform and xUnit and NUnit are on their way too (beta/previews for them).

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

2 participants