Appwright is a test runner for e2e testing of mobile apps, based on Playwright and Appium.
npm i --save-dev appwright
touch appwright.config.ts
// In appwright.config.ts
import { defineConfig, Platform } from "appwright";
export default defineConfig({
projects: [
{
name: "android",
use: {
platform: Platform.ANDROID,
device: {
provider: "emulator",
name: "Google Pixel 8",
osVersion: "14.0",
},
buildPath: "app-release.apk",
},
},
],
});
Appwright currently runs tests on BrowserStack only.
npx appwright test --project android
npx appwright test --project ios