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

Closed
jnyrup opened this issue Dec 17, 2024 · 6 comments · Fixed by #4405
Closed

Cannot run UWP tests with 3.6.2 #4371

jnyrup opened this issue Dec 17, 2024 · 6 comments · Fixed by #4405

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).

@Evangelink
Copy link
Member

@jnyrup I am not managing to build the uwp package on the commit you gave me.

@jnyrup
Copy link
Contributor Author

jnyrup commented Dec 19, 2024

Where are you stuck?
It is not build or run when using build.{sh,cmd,ps1} as your screenshot above indicates you might be doing?
I use Visual Studio 2022 (plus the "Windows 10 SDK (10.0.19041.0)" workload) to build and run UWP.Specs

@Evangelink
Copy link
Member

I have managed to create a uwp test project and I am investigating from there. It's not really clear to me what's going-on...

@Evangelink
Copy link
Member

Ok so looks like we have a few problems, it's not yet fully clear as the issue is different for 3.7

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

Successfully merging a pull request may close this issue.

2 participants