Advanced Automation

Link to Advanced Automation copied to clipboard

With axe DevTools for Mobile, you can have complete accessibility testing at every step of the development lifecycle. Catch accessibility issues with automation before they are added to the codebase.

Automation setup can be found in the Setup for Automation page.

This section will discuss features available to you to customize your automation experience. You'll also find examples of integrating axe DevTools into your favorite testing frameworks within the left-side navigation.

axe DevTools for iOS allows scans to be saved locally or sent to the dashboard. Save scans locally to generate session reports utilizing the axe DevTools Reporter CLI tool.

Custom Configuration

Utilize some of the available features within the setUp method to customize your testing experience.

override func setUp() {
	axe?.configuration.ignore(rule: AxeRuleId.ConflictingTraits.toString())
}

Update Build Status

As mentioned above, axe DevTools is available throughout your CI/CD pipeline. To fail a build and keep an issue from being merged, you will want to fail a test when accessibility issues are found.

let result = try axe.run(onElement: XCUIApplication())

XCTAssertEqual(result.failures.count, 0)