Sauce LabsとEspresso
Not for use with personal data
axe DevTools Mobileを使用すると、Espressoテストでアクセシビリティの問題を見つけることができます。Sauce Labsとテストを統合し、アプリを実際に見たことがないユーザーの体験を洞察します。これには、チームの追加の努力は必要ありません。Sauce Labsは、さまざまなデバイスとエミュレーター構成をホストする、最大のクラウドベースのテスティングプラットフォームです。現在のビルドオートメーション内で、Sauceでテストを実行するように設定し、本番環境に問題が到達する前にキャッチします。
以下は、axe DevTools MobileとSauce Labsと統合されたEspressoテストを実行するためのガイドです。
前提条件
- The `saucectl` command-line interface:以下に従ってください Sauce Labsのインストール手順 、もしSauce CLIをまだ持っていない場合。
.bash_profile または .zshenvに追加してください。変更をロードするには、次を実行してください source .filename。詳細については、次に従ってください Sauce Labsの指示。Sauce Labsの設定を追加
Sauce Labsは yaml プロジェクトルートにあるファイルを使用します .sauce/config.yml。以下のサンプル設定ファイルを参照してください:
version: 2.1
apiVersion: v1alpha
kind: espresso
sauce:
region: us-west-1
concurrency: 10
metadata:
tags:
- e2e
build: Your App
espresso:
app: ./app/build/outputs/apk/debug/<app_name>-debug.apk
testApp: ./app/build/outputs/apk/androidTest/debug/<app_name>-debug-androidTest.apk
suites:
- name: "<app_name>"
testOptions:
clearPackageData: true
useTestOrchestrator: true
emulators:
- name: "Google Pixel 3 GoogleAPI Emulator"
platformVersions:
- "11.0"
- name: "Google Pixel 3a GoogleAPI Emulator"
platformVersions:
- "10.0"
- name: "Google Pixel 3 XL GoogleAPI Emulator"
platformVersions:
- "9.0"
Sauce Labsでのテスト実行
をプロジェクトのルートから実行することで、Sauce Labsプラットフォーム上でEspressoテストを開始します。このコマンドをCI/CDパイプラインに統合することで、完全な自動化を実現します。 saucectl run from the root of your project will kick off your Espresso tests on the Sauce Labs platform. Integrate this command into your CI/CD pipeline for full automation.
