Chapter 21 : Unit Testing Before the code is shared with the QA team for accessibility audit, developers can have a quick look for any potential accessibility bugs. Let us now see how can the app developers do an unit test before the handover. IOS It is always good to test the app with the built in accessibility features such as voiceover and switch control for any accessibility bugs. However it is difficult to check all the accessibility features on all platforms. The newly introduced Accessibility inspector in XCode allows the developers to find, diagnose and fix common accessibility errors on your app. You can either check from the simulator or can connect an app on the device. Here is the video that explains how to use Accessibility Inspector on XCode. Android While the accessibility audit best results with built in features such as talkback, it is often a tedious process. To overcome this challenge, Google released the accessibility Scanner app for Android. Anyone can easily identify the most common accessibility issues with a simple tap on the app. More information on how to download and use the accessibility scanner. In android studio developers can add accessibility checks to the lint rules. For example, you can add the following rule to check for missing contentDescription for images. Go to Preferences → Editor → Inspections → Android > Lint > Accessibility → Image without contentDescription, and set the Severity to Error. More information on using lint for accessibility testing. Previous Chapter 20 Next Chapter 22