-
Notifications
You must be signed in to change notification settings - Fork 285
Refactor STA attributes logic outside of adapter #5856
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev/v4 #5856 +/- ##
==========================================
- Coverage 63.21% 63.18% -0.04%
==========================================
Files 584 584
Lines 31808 31808
==========================================
- Hits 20107 20097 -10
- Misses 11701 11711 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to also simplify logic from
private async Task RunTestsFromRightContextAsync(IFrameworkHandle frameworkHandle, Func<TestRunCancellationToken, Task> runTestsAction) |
src/TestFramework/TestFramework/Attributes/TestMethod/STATestMethodAttribute.cs
Outdated
Show resolved
Hide resolved
Hmm, I'm not sure exactly what to simplify there as this is more of a global setting unrelated to the attributes. |
True, if we don't care much about perf, we could force |
The logic in the attribute checks if we are already in STA thread, and in that case we don't create a thread and we run directly. |
@Evangelink I changed a bit the signature of the wrapping constructor of |
Closes #5693
Related to #1285