Files
sanderling/docs/manual/getting-started.md
T
pj 229f642f54 docs(manual): add web prerequisites and folio-web example
Update --platform flag to list android, ios, web. Add web prerequisites
section (Chrome, no SDK needed) and folio-web quick-start to
getting-started.
2026-04-23 00:05:58 +07:00

1.9 KiB

title
title
Getting started

Getting started

Install the CLI, link the SDK into your debug build, run a spec.

Prerequisites

Android / iOS:

  • An Android emulator with API level 30 or newer (or a connected device).
  • The app under test built as a debug variant with the sanderling Android SDK linked in.
  • adb on your PATH.

Web:

  • Chrome installed. sanderling drives it via CDP; no other setup required.
  • No in-app SDK needed.

Run sanderling doctor to check the host environment.

Install

CLI

curl -fsSL https://raw.githubusercontent.com/priyanshujain/sanderling/master/install.sh | bash

Spec package (npm)

npm install --save-dev @sanderling/spec

Android SDK (Maven Central)

dependencies {
    implementation("io.github.priyanshujain.sanderling:sdk-android:<version>")
}

Your first run

Android

The repo ships a working sample at examples/folio, a Kotlin Multiplatform app with a TypeScript spec under sanderling/spec.ts. Install just, then from examples/folio:

just install   # build and install the folio APK on a booted emulator or device
just test      # run the spec

With no device connected and multiple AVDs, pick one:

AVD=Pixel_7 just test

Persistent settings can live in a .env alongside the justfile (AVD=Pixel_7, DURATION=5m, and so on).

Web

The repo also ships a web sample at examples/folio-web, a React/Vite app with the same domain logic. From examples/folio-web:

just test      # starts Chrome, runs the spec

No emulator or SDK setup needed.

Trace output

When the run ends, the trace lands in sanderling/runs/<timestamp>/:

runs/2026-04-18T12-34-56/
├── trace.jsonl
├── screenshots/
└── meta.json

Browse it with sanderling inspect (see inspect), or read trace.jsonl step by step.

Next: writing specs.