-
Notifications
You must be signed in to change notification settings - Fork 261
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
Possible issue with Microsoft Fakes #4441
Comments
Some additional observations:
|
Finally, I was able to create a sample project. |
Looking at the sample the When specified, the Removing The reason why this is working with vstest.console (non-MSTest.SDK) is that it dynamically loads the Fakes libraries from C:\ProgramFiles, whereas the testing platform is designed to be self-contained and all of the libraries needed to run Fakes are expected to be in the bin folder instead. |
@drognanar Thanks for the investigation. Would it be possible to update the Fakes extension doc page? |
@Evangelink it makes sense to add an FAQ entry as the same issue impacts code coverage, i.e. in this configuration the coverage file generated by running |
@drognanar, @Evangelink, looks like the SDK-style projects have problems with .NET 4.8 targeting. If you change the target framework in the sample project to net8.0 it works. |
@drognanar, @Evangelink, removing |
A project that uses MSTest.Sdk/3.7.0 and EnableMicrosoftTestingExtensionsFakes set to true has issues execution tests that use fakes. Partial trace output:
Unfortunately, I was not able to create a project to reproduce the issue.
The text was updated successfully, but these errors were encountered: