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
Add the option to enable/disable the main thread checker from the generated schemes #1382
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1382 +/- ##
==========================================
+ Coverage 75.08% 75.11% +0.03%
==========================================
Files 317 318 +1
Lines 10391 10418 +27
==========================================
+ Hits 7802 7826 +24
- Misses 2589 2592 +3
Continue to review full report at Codecov.
|
@@ -269,6 +278,7 @@ final class SchemesGenerator: SchemesGenerating { | |||
|
|||
let onlyGenerateCoverageForSpecifiedTargets = codeCoverageTargets.count > 0 ? true : nil | |||
|
|||
let disableMainThreadChecker = !testAction.diagnosticsOptions.contains(.mainThreadChecker) |
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.
I thought about using the affermative (enable) instead of negative (disable) disableMainThreadChecker
-> isMainThreadCheckerEnabled
since I think that's more readable. But I see that's the name used in the XCScheme
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.
disableMainThreadChecker
is how Xcode calls the attribute 😛 . That's why I took the opportunity to make it positive from our API . mainThreadChecker
Resolves #1321
Short description 📝
As @gbasile pointed out here we are enabling the main thread checker by default. This PR adds a new API to the
RunAction
andTestAction
model to set diagnostics options.