Remove dependency on `RemoteExecutor` in tests
See original GitHub issueProblem 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:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@willibrandon I’m assigning this to you. Please holler if you won’t be able to work on it.
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.