Point-Free has proposed adding a native `.taskLocal` test trait to Swift Testing, eliminating the need to write custom `TestTrait`/`SuiteTrait`/`TestScoping` conformances for every task local you want to override in tests. Currently, binding a task local value for a test requires significant boilerplate per task local. The proposed `.taskLocal(FeatureFlags.$isEnabled, true)` syntax would make this universally available without any custom trait definitions, also removing the need for a dedicated test-support library just to house those traits.
402 Impressions