question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Microsoft Fakes shims

See original GitHub issue

Version: 0.17.1 (beta)

A new version of Stryker.NET (0.20.0) is available. Please consider upgrading using dotnet tool update -g dotnet-stryker

[20:47:12 INF] Identifying project to mutate. [20:47:21 INF] The project [removed].Worker.csproj will be mutated. [20:47:26 INF] Restoring nuget packages using nuget.exe [20:47:35 INF] Analysis complete. [20:47:35 INF] Building test project [removed].UnitTests.csproj (1/1) [20:47:52 INF] Initializing test runners (VsTest) [20:48:00 INF] Test runners are ready [20:48:00 INF] Total number of tests found: 2 [20:48:00 INF] Initial testrun started [20:48:33 WRN] Initial test run failed. Mutation score cannot be computed. [20:48:33 INF] Time Elapsed 00:01:22.3910662 Stryker.NET failed to mutate your project. For more information see the logs below:

Initial testrun was not successful.

Test method [removed].AppContainerTests.AppContainer_TestLifecycle threw exception: Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: Failed to resolve profiler path from COR_PROFILER_PATH and COR_PROFILER environment variables.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
rouke-broersmacommented, Nov 4, 2020

Thanks guys for a quick turnaround! Unfortunately most of the projects in my team use Fakes so I can’t onboard Stryker.NET so far but I really want to do that as an excellent tool to check unit test quality.

Just wondering when does enhancement like that usually get implemented? Or it is a open source project and if I need something I should do that?

It is an open source project, and if you can provide time to add something you want we would really appreciate the contribution 😉 If you don’t have time to do it yourself then it will depend on when one of us or another contributor can find the time to add this feature. We do this in our own time as well, so there’s no guarantees.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use shims to isolate your app for unit testing
Shim class names are made up by prefixing Fakes.Shim to the original type name. Parameter names are appended to the method name. (You...
Read more >
Isolating Code Under Test with Microsoft Fakes
Learn how Microsoft Fakes helps you isolate the code you are testing by replacing other parts of the application with stubs or shims....
Read more >
VS 2022 Shims, Stubs, Fakes fail to build
Just upgraded from VS 2012 Pro to VS 2022 Enterprise. Previously functioning Shims, Stubs and Accessors all fail to be created.
Read more >
Microsoft Fakes: Generate & compile code; naming ...
The Fakes code generator generates shim types and stub types for types that are visible to the generated Fakes assembly.
Read more >
A “Shim-ple” Tutorial With Microsoft Fakes - adamprescott.net
Getting started with MS Fakes is refreshingly easy, too. The integration with Visual Studio allows you to skip the hard parts and get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found