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.

Test runner issues with ReSharper/Rider 2020.2 EAP6+

See original GitHub issue

ReSharper/Rider 2020.2 EAP6 introduced a change in the test runner which breaks the tests that use ExecuteTestRun on .NET Core.

The new runner loads the tested assemblies in a separate AssemblyLoadContext (not the default one). The call to Assembly.Load(byte[]) in ExecuteTestRun creates its own AssemblyLoadContext to load the assembly, which means its dependencies are no longer resolved correctly, as they are not loaded in the default context by the new runner version anymore.

Read more details in the issue I reported to JetBrains.

There will be a new emulate dotnet vstest resolve option in EAP8 which should fix this, but it will be disabled by default. I’ll wait for EAP8 to ship and then fix this in Fody so we can get the correct behavior by default.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonCroppcommented, Aug 8, 2020

NET Core target to the FodyHelpers

I think that should be fine.

0reactions
ltrzesniewskicommented, Sep 15, 2020

I’d say the main drawbacks are the additional target in FodyHelpers and the slightly increased code complexity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unit Test runner stays running and has to be terminated
Looks to be resolved in EAP6 from my testing so far. However we also noticed the same issue with R# 2020.2.4 in Visual...
Read more >
all unit tests are finished ,but child process is swamped by ...
Actually this message appears when all tests have passed, but test runner is still running, which is likely because of some tear down...
Read more >
Java Testing in Visual Studio Code
Testing Java in Visual Studio Code is enabled by the Test Runner for Java extension. It's a lightweight extension to run and debug...
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