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.

Remove dependency on `RemoteExecutor` in tests

See original GitHub issue

Problem description:

RemoteExecutor has been used in a number of tests for the sole purpose of enabling visual styles. However RemoteExecutor has proven to be rather unstable (see: https://github.com/dotnet/arcade/issues/5325).

The tests have been update to run with visual styles on by default in https://github.com/dotnet/winforms/pull/4197, however RemoteExecutor hasn’t been cleaned out.

We need to scan the codebase for RemoteExecutor (and "_Skip = "Crash with AbandonedMutexException. See: https://github.com/dotnet/arcade/issues/5325"_") and update those tests, removing RemoteExecutor.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
RussKiecommented, Jul 19, 2022

@willibrandon I’m assigning this to you. Please holler if you won’t be able to work on it.

1reaction
RussKiecommented, Jul 18, 2022

That’d be great!

We use/tried to use RemoteExecutor for situations where we need change the global state (e.g., disable visual styles, control the clipboard, the mouse or the keyboard, etc.). Because unit tests are run in parallel any changes to the global state destabilises the whole suite. So one way of resolution is to migrate the RE-dependent tests to the UIIntegration test project that executes tests serially and can bootstrap each test as necessary without risks of affecting other tests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove dependencies for Unit tests - java
I want to unit test my code without a dependency on having the back end service up and running on my google app...
Read more >
Remove dependencies from Microsoft.Net.Test.Sdk #1764
Net.Test.Sdk package depends on the following packages, which causes these dependencies to flow to unit tests, potentially causing conflicts ...
Read more >
How to gracefully handle added/removed dependencies in ...
Re-factoring leads to adding and removing new dependencies to classes. That often leads to rewriting of unit tests. This posts explains how ...
Read more >
Remove dependency for unit test builds
the module in use is “:sdk:prod”. I have tried some other ways I found on the internet but I never got it to...
Read more >
Correct way to disable test dependency - SonarQube
I found that tests can be disabled by running ./gradlew sonar -x test but I'm not sure if it is an official and...
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