Swift 6.1 introduces custom Swift Testing traits for custom scoping of test setup and teardown logic.By implementing the TestScoping protocol, custom traits can define how each test or suite applies the trait.A trait example shown involves binding a task local value to a mocked resource for test validation.The proposal also mentions limitations in accessing instance-level members and includes plans to add a built-in trait type to simplify testing.