ビルドステータスを更新する

This page is not available in the language you requested. You have been redirected to the English version of the page.
Link to this page copied to clipboard
Not for use with personal data

開発サイクルの初期段階でアクセシビリティの問題を明らかにし、解決するために、axe DevTools Mobile をCI/CDパイプラインに統合します。 スキャンを実行して結果を処理することにより、アクセシビリティの問題を見つけます。問題が発見された場合はテストを失敗させ、ビルドを失敗させてこれらの問題が本番コードにマージされることを防ぎます。以下のコードスニペットは、スキャン結果でアクセシビリティの問題が見つかった場合にビルドを失敗させる方法の例を示しています。

    // 1. Scan and save the results object
    let result = try axe.run(onElement: XCUIApplication())
    // 2. Fail the build if accessibility issues are found
    XCTAssertEqual(result.failures.count, 0)