How do I ignore items from automatic accessibility audit?

Asked on 07/30/2024

1 search

To ignore items from an automatic accessibility audit, you can use the disabled trait in your tests. This is preferable over other techniques like commenting out the test function because it ensures that the code inside the test still compiles. The disabled trait accepts a comment which you can use to explain the reason why the test is disabled, and these comments always appear in the structured results, making them visible in your CI system.

For more details, you can refer to the session Meet Swift Testing at the timestamp 09:37.

How do I ignore items from automatic accessibility audit? | Ask WWDC