Run your VibeView tests on every pull request. The workflow template on this page builds your app, runs its tests (or the groups you name) against that exact build on cloud iOS simulators and Android emulators, and reports the result on the pull request: one comment per platform, a job summary, and a job that fails when a test fails. The same jobs work for Apple TV, Android TV and Roku apps.
Using run-suite, run-suites or list-suites? They are deprecated and keep working for now: see Moving to run-checks. (They call a group a suite.)
To build your app on every push to a branch instead (with an optional test run on each build), see Cloud builds in CI.
How it works
- Build. iOS is built by cloud builds, so you don’t need a Mac runner. Android is built by your own job in the workflow. Either platform can use either option (see Customizing the workflow).
- Upload. Each platform job ends up with the id of the build it just made, and every run is pinned to that build, never to “the latest upload”.
- Run.
vibeview run-checksruns the app’s tests on one device of that platform, inhybridmode (called Smart in the dashboard): each step’s learned path replays, and the AI agent handles only the steps that have none or whose replay fails. - Report. A report job writes a job summary and keeps one comment per platform up to date on the pull request, with a row per group and a link to every test’s run page.
If your organization has connected GitHub, the run also posts commit statuses on the pull request’s head commit.
Before you start
- Choose what runs. A platform job runs every test of the app it built, and of the apps linked to it with the same form factor. To run only some groups, see Choosing which groups run.
- Create an API token for this repository. In Settings > API token, generate a token with the Developer role, CI only access, an expiry (for example 90 days) and a label naming the repository (creating tokens needs the Admin role; see API tokens). In GitHub, add it as the repository secret
VIBEVIEW_API_TOKEN(Settings > Secrets and variables > Actions). - Configure the iOS cloud build. The iOS job builds the
iosentry of thevibeview.jsonin your repository (see Cloud Builds). For a React Native app, CI needs a build that embeds the JavaScript bundle: use theReleaseconfiguration. ADebugbuild waits for a Metro server that CI doesn’t have. With build profiles, that is thepreviewprofile: for a React Native or Expo app, add--profile previewto the template’svibeview build --cloudcommand (runningvibeview build --cloud --profile previewonce on your machine saves the profile tovibeview.json). - Replace the Android build step with your own build (see the comments in the workflow). The APK must include the
x86_64ABI, and a React Native APK must be a release build for the same reason as above.
Workflow template
Download vibeview-test.yml and save it as .github/workflows/vibeview.yml, or copy it from here:
# VibeView: run your app's VibeView tests against every pull request's build.
#
# Save this file as .github/workflows/vibeview.yml. Docs, and the latest version
# of this file: https://vibeview.io/docs/ci-testing
#
# One-time setup
# 1. Create an API token for this repository only (VibeView > Settings >
# API token, role Developer, access CI only, with an expiry) and save it
# as the repository secret
# VIBEVIEW_API_TOKEN (Settings > Secrets and variables > Actions).
# 2. Choose what runs. Each platform job runs every test of the app it built
# and of the apps linked to it. To run only some groups, add the
# repository variable VIBEVIEW_GROUPS (same page, the Variables tab) with
# one group name per line, at most 20. --mode hybrid is Smart in the
# dashboard.
# 3. iOS is built by VibeView cloud builds from the "ios" build block
# in your vibeview.json. Android is built in this workflow: replace the
# "Build" step of the build-android job with your own build.
# 4. Delete the jobs of a platform you don't ship, and remove them from the
# report job's "needs".
#
# Pull requests from forks and from Dependabot are skipped: GitHub gives them
# no secrets. Never switch this workflow to pull_request_target.
name: VibeView
on:
pull_request:
paths-ignore:
- '**/*.md'
- 'docs/**'
workflow_dispatch:
permissions:
contents: read
defaults:
run:
# bash -eo pipefail: a failing command fails the step, also inside a pipeline.
shell: bash
concurrency:
group: vibeview-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
# The VibeView CLI version. Pinned: bump it deliberately.
VIBEVIEW_CLI_VERSION: 0.80.0
jobs:
ios:
name: VibeView (iOS)
if: >-
github.event_name != 'pull_request' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]')
runs-on: ubuntu-latest
# Above the cloud build plus the CLI's own wait, so the CLI gives up first
# and cancels the run on VibeView.
timeout-minutes: 150
env:
VV_GROUPS: ${{ vars.VIBEVIEW_GROUPS }}
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
- name: Install the VibeView CLI
run: npm install --global --no-audit --no-fund "vibeview@${VIBEVIEW_CLI_VERSION}"
- name: Check the setup
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
run: |
if [ -z "${VIBEVIEW_API_TOKEN}" ]; then
echo "::error::The repository secret VIBEVIEW_API_TOKEN is not set."
exit 1
fi
# Builds the "ios" block of vibeview.json on VibeView and adds the result
# to your app's build history. For React Native, that build must embed
# the JS bundle (a Release build): a Debug build needs Metro. For React
# Native or Expo, add --profile preview to the build command below.
- name: Build in the cloud
id: build
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
run: |
out="$RUNNER_TEMP/vibeview"
mkdir -p "$out"
status=0
# The full build log is long: it is collapsed in the job log.
echo "::group::Cloud build log"
vibeview build --cloud --platform ios --json \
| tee "$out/build.ndjson" \
| jq --unbuffered -rj 'select(.event == "build_log") | .content' \
|| status=$?
echo "::endgroup::"
build_id=$(jq -rs '[.[] | select(.event == "build_finished" and .status == "succeeded")]
| last | .app_build_id // empty' "$out/build.ndjson")
app_id=$(jq -rs '[.[] | select(.event == "build_finished" and .status == "succeeded")]
| last | .app_public_id // empty' "$out/build.ndjson")
if [ "$status" -ne 0 ] || [ -z "$build_id" ] || [ -z "$app_id" ]; then
echo "The last 100 lines of the build log:"
jq -rj 'select(.event == "build_log") | .content' "$out/build.ndjson" | tail -n 100
jq -r 'select(.event == "error") | "error: \(.message)"' "$out/build.ndjson"
echo "::error::The iOS cloud build failed. See the build log above (the full log is in the \"Cloud build log\" group)."
exit 1
fi
echo "build_id=$build_id" >> "$GITHUB_OUTPUT"
echo "app_id=$app_id" >> "$GITHUB_OUTPUT"
# A cancelled or timed-out job doesn't stop a cloud build by itself.
- name: Cancel the cloud build
if: cancelled()
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
run: |
log="$RUNNER_TEMP/vibeview/build.ndjson"
[ -s "$log" ] || exit 0
for id in $(jq -r 'select(.event == "build_created") | .id' "$log"); do
if ! jq -e --arg id "$id" 'select(.event == "build_finished" and .id == $id)' "$log" > /dev/null; then
vibeview builds cancel "$id" || true
fi
done
# exec: the CLI must be this step's own process, so a cancelled or
# timed-out job stops the CLI and the CLI cancels the run on VibeView.
# Exit code: 0 passed, 1 a test failed, 2 the run could not complete.
- name: Run the tests
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
APP_ID: ${{ steps.build.outputs.app_id }}
BUILD_ID: ${{ steps.build.outputs.build_id }}
run: |
out="$RUNNER_TEMP/vibeview"
jq -n --arg repo "$GITHUB_REPOSITORY" --arg sha "$HEAD_SHA" --arg pr "$PR_NUMBER" \
--arg run "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
'{github: {repository: $repo, sha: $sha, pull_request: $pr, workflow_run: $run}}' \
> "$out/metadata.json"
# One --group for each line of VIBEVIEW_GROUPS; none runs all the app's tests.
groups=()
while read -r group; do
if [ -n "$group" ]; then groups+=("--group=$group"); fi
done <<< "${VV_GROUPS//$'\r'/}"
exec vibeview run-checks --app "$APP_ID" --platform ios --build "$BUILD_ID" \
"${groups[@]}" --mode hybrid --commit-sha "$HEAD_SHA" \
--metadata-file "$out/metadata.json" \
--timeout 7200 --output json > "$out/result-$GITHUB_JOB.json"
- name: Keep the result for the report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vibeview-result-${{ github.job }}
path: ${{ runner.temp }}/vibeview/result-${{ github.job }}.json
if-no-files-found: ignore
retention-days: 7
# No VibeView secret in this job: the pull request's build scripts never see it.
build-android:
name: Build Android
if: >-
github.event_name != 'pull_request' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]')
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
- uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
with:
distribution: temurin
java-version: 17
# Replace with your own build (this one is a React Native project). The APK
# must include the x86_64 ABI, and must run without a dev server: for
# React Native, a release build embeds the JS bundle.
- name: Build
run: |
npm ci
cd android
./gradlew assembleRelease -PreactNativeArchitectures=x86_64,arm64-v8a
cp app/build/outputs/apk/release/app-release.apk "$RUNNER_TEMP/app-android.apk"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: app-android
path: ${{ runner.temp }}/app-android.apk
retention-days: 3
android:
name: VibeView (Android)
needs: build-android
runs-on: ubuntu-latest
# Above the CLI's own wait, so the CLI gives up first and cancels the run.
timeout-minutes: 130
env:
VV_GROUPS: ${{ vars.VIBEVIEW_GROUPS }}
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
steps:
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
- name: Install the VibeView CLI
run: npm install --global --no-audit --no-fund "vibeview@${VIBEVIEW_CLI_VERSION}"
- name: Check the setup
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
run: |
if [ -z "${VIBEVIEW_API_TOKEN}" ]; then
echo "::error::The repository secret VIBEVIEW_API_TOKEN is not set."
exit 1
fi
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: app-android
path: ${{ runner.temp }}/app
- name: Upload the build
id: build
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
run: |
out="$RUNNER_TEMP/vibeview"
mkdir -p "$out"
note="$GITHUB_REPOSITORY ${PR_NUMBER:+PR #$PR_NUMBER }${HEAD_SHA:0:7}"
vibeview upload-app "$RUNNER_TEMP/app/app-android.apk" --note "$note" \
--output json > "$out/upload.json"
build_id=$(jq -er '.build_id' "$out/upload.json")
app_id=$(jq -er '.app_id' "$out/upload.json")
echo "build_id=$build_id" >> "$GITHUB_OUTPUT"
echo "app_id=$app_id" >> "$GITHUB_OUTPUT"
# exec: see the iOS job.
- name: Run the tests
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
APP_ID: ${{ steps.build.outputs.app_id }}
BUILD_ID: ${{ steps.build.outputs.build_id }}
run: |
out="$RUNNER_TEMP/vibeview"
jq -n --arg repo "$GITHUB_REPOSITORY" --arg sha "$HEAD_SHA" --arg pr "$PR_NUMBER" \
--arg run "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
'{github: {repository: $repo, sha: $sha, pull_request: $pr, workflow_run: $run}}' \
> "$out/metadata.json"
# One --group for each line of VIBEVIEW_GROUPS; none runs all the app's tests.
groups=()
while read -r group; do
if [ -n "$group" ]; then groups+=("--group=$group"); fi
done <<< "${VV_GROUPS//$'\r'/}"
exec vibeview run-checks --app "$APP_ID" --platform android --build "$BUILD_ID" \
"${groups[@]}" --mode hybrid --commit-sha "$HEAD_SHA" \
--metadata-file "$out/metadata.json" \
--timeout 7200 --output json > "$out/result-$GITHUB_JOB.json"
- name: Keep the result for the report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vibeview-result-${{ github.job }}
path: ${{ runner.temp }}/vibeview/result-${{ github.job }}.json
if-no-files-found: ignore
retention-days: 7
# Writes the job summary and one comment per platform on the pull request.
# The only job that can write to the pull request, and it has no VibeView secret.
report:
name: VibeView report
needs: [ios, android]
if: >-
!cancelled() &&
(github.event_name != 'pull_request' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]'))
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: write
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
continue-on-error: true
with:
pattern: vibeview-result-*
path: ${{ runner.temp }}/results
# One flat folder even when only one platform left a result (a single
# matching artifact is otherwise unpacked straight into path/).
merge-multiple: true
- name: Summarize and comment
env:
GH_TOKEN: ${{ github.token }}
NEEDS: ${{ toJSON(needs) }}
PR_NUMBER: ${{ github.event.pull_request.number }}
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
run: |
cat > "$RUNNER_TEMP/render.jq" <<'JQ'
def clip($n): tostring | if length > $n then .[0:$n] + "..." else . end;
# Names and messages come from your tests and your app: neutralize Markdown,
# HTML and @mentions before they reach the comment.
def esc: tostring | gsub("[\r\n\t]+"; " ")
| gsub("&"; "&") | gsub("<"; "<") | gsub(">"; ">")
| gsub("(?<c>[\\\\`*_{}\\[\\]()#+!|~$])"; "\\\(.c)")
| gsub("@"; "@");
def link($text; $url):
if ($url | type) == "string" and ($url | test("^https://[^\\s()<>\\[\\]]+$"))
then "[\($text)](\($url))" else $text end;
def warned: .visual_regression_status == "warn" or .visual_regression_status == "fail";
def icon: if .status == "passed" then (if warned then "⚠️" else "✅" end)
elif .status == "cancelled" or .status == "not_run" then "⚪"
elif (.status == "queued" or .status == "pending" or .status == "running") then "⏳"
else "❌" end;
def note: if .status != "passed" and .error_message then ": " + (.error_message | clip(300) | esc)
elif .status == "passed" and warned then ": passed with visual differences from its baseline"
else "" end;
def suite_note: if .status != "passed" and .error_message then ": " + (.error_message | clip(200) | esc) else "" end;
def credit: if (.cost_micro | type) == "number"
then "\nUsage credit: $\((.cost_micro / 100 | round) / 10000)\n" else "" end;
def suites:
"| Group | Result | Passed | Failed |\n| --- | --- | --- | --- |\n"
+ ([.suite_runs[] | "| \(icon) \(link(.suite_name // "Group" | clip(100) | esc; .url)) | \(.status | esc)\(suite_note) | \(.passed // 0) | \(.failed // 0) |"] | join("\n"))
+ "\n"
+ ([.suite_runs[] | .case_runs[]? | "- \(icon) \(link(.case_name // "Case" | clip(100) | esc; .url))\(note)"]
| if length > 0 then "\n<details><summary>Test cases</summary>\n\n" + join("\n") + "\n\n</details>\n" else "" end);
# A run of run-checks: one lane per device, each with its groups and then the
# tests in none. A status that is "passed" counts only when every test passed.
def verdict($tests):
if any($tests[]; .status == "failed") then "failed"
elif . != "passed" then .
elif ($tests | length) == 0 then "no test ran"
elif all($tests[]; .status == "passed") then "passed"
else "not every test ran" end;
def outcome: if any(.[]; .status == "error") then "error"
elif any(.[]; .status == "cancelled") then "cancelled" else "passed" end;
def device: .device_name // .model // .platform // "Device" | clip(60);
def sections: (.lanes | length > 1) as $several | [.lanes[]
| (if $several then ", \(device)" else "" end) as $on
| ([.runs[]? | select(.kind != "group") | .tests[]?]) as $loose
| (.runs[]? | select(.kind == "group")
| {name: ((.name // "Group" | clip(100)) + $on), status, error_message, tests: [.tests[]?]}),
(select(($loose | length) > 0)
| {name: ("Tests in no group" + $on), status: ($loose | outcome), tests: $loose})];
def section_row: .tests as $tests
| {status: (.status | verdict($tests)), error_message,
visual_regression_status: (if any($tests[]; warned) then "warn" else null end)} as $r
| "| \($r | icon) \(.name | esc) | \($r.status | esc)\($r | suite_note)"
+ " | \([$tests[] | select(.status == "passed")] | length)"
+ " | \([$tests[] | select(.status == "failed")] | length) |";
def why: .not_run_reason // .error_message // "" | sub("^Not run:? *"; "");
def test_line: "- \(icon) \(link(.name // "Test" | clip(100) | esc; .url))"
+ (if .retry_of then (if .status == "passed" then " (passed on retry)" else " (after a retry)" end) else "" end)
+ (if .status != "not_run" then note
elif why == "" then ": not run" else ": not run: \(why | clip(300) | esc)" end);
def checks: sections as $sections
| [$sections | to_entries[] | {at: .key, test: .value.tests[]}] as $all
# A long run lists what did not pass first: a comment has a size limit.
| (if ($all | length) > 100 then ($all | sort_by(.test.status == "passed") | .[:100]) else $all end) as $listed
| link("Open the run"; .url) + "\n\n"
+ ([.lanes[] | select(.error_message) | "\(icon) \(device | esc): \(.error_message | clip(300) | esc)\n\n"] | add // "")
+ (if ($sections | length) == 0 then "" else
"| Group | Result | Passed | Failed |\n| --- | --- | --- | --- |\n"
+ ([$sections[] | section_row] | join("\n")) + "\n" end)
+ (if ($listed | length) == 0 then "" else
"\n<details><summary>Tests</summary>\n\n"
+ ([$listed | group_by(.at)[]
| (if ($sections | length) > 1 then "**\($sections[.[0].at].name | esc)**\n\n" else "" end)
+ ([.[].test | test_line] | join("\n"))] | join("\n\n"))
+ (if ($all | length) > 100 then "\n\n\(($all | length) - 100) more tests are on the run's page." else "" end)
+ "\n\n</details>\n" end);
def checks_cost: [.lanes[].runs[]?.tests[]? | select(.is_byok != true) | .cost_micro | numbers] | if length > 0 then {cost_micro: add} else {} end;
# GitHub takes 65536 characters: a cut comment still closes its list.
def fit: if length <= 60000 then . else .[:60000] + "..." | . + (
if (split("<details>") | length) > (split("</details>") | length) then "\n\n</details>\n" else "\n" end) end;
def steps:
([.steps[]? | "- \(if .status == "passed" then "✅" else "❌" end) \(.step | clip(200) | esc)"
+ (if .status != "passed" and .error then ": " + (.error | clip(300) | esc) else "" end)] | join("\n"));
def tested: (if $sha | test("^[0-9a-f]{7,40}$") then "Commit `\($sha[0:7])` · " else "" end)
+ "[workflow run](\($run_url))\n\n";
def header($icon; $status): "\($marker)\n### \($icon) VibeView (\($label)): \($status | esc)\n\n" + tested;
. as $run | if . == null then
header("❌"; "no result")
+ (if $job_result == "skipped" then "The job did not run: a job it depends on failed or was skipped. "
else "The job ended (\($job_result | esc)) before the tests reported a result. " end)
+ "See [the workflow run](\($run_url)).\n"
elif .event? == "error" then
header("❌"; "could not run") + (.message | clip(500) | esc) + "\n\n"
+ (if (.result | type) == "object" and (.result.suite_runs | type) == "array" then (.result | suites) else "" end)
+ (if .url then link("Open the run"; .url) + "\n" else "" end)
elif (.lanes | type) == "array" then
.status = (.status | verdict([$run.lanes[].runs[]?.tests[]?]))
| header(icon; .status) + checks + (checks_cost | credit)
elif (.suite_runs | type) == "array" then
# A result of the command this replaced.
header(icon; .status) + suites + credit
elif .type == "test_run" or (.steps | type) == "array" then
header(icon; .status) + "\(link(.case_name // "Test" | clip(100) | esc; .url))\(note)\n\n" + steps + "\n" + credit
else
header("❔"; "unrecognized result") + "See [the workflow run](\($run_url)).\n"
end | fit
JQ
run_url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
for job in $(jq -r 'keys[]' <<< "$NEEDS"); do
case "$job" in
ios) label="iOS" ;; android) label="Android" ;;
tvos) label="Apple TV" ;; androidtv) label="Android TV" ;;
*) label="$job" ;;
esac
job_result=$(jq -r --arg j "$job" '.[$j].result' <<< "$NEEDS")
marker="<!-- vibeview-ci:$job -->"
result="$RUNNER_TEMP/results/result-$job.json"
body="$RUNNER_TEMP/comment-$job.md"
args=(--arg marker "$marker" --arg label "$label" --arg job_result "$job_result" --arg run_url "$run_url"
--arg sha "$HEAD_SHA")
if [ -s "$result" ] && jq -e 'type == "object"' "$result" > /dev/null 2>&1; then
jq -r "${args[@]}" -f "$RUNNER_TEMP/render.jq" "$result" > "$body"
else
jq -r "${args[@]}" -f "$RUNNER_TEMP/render.jq" <<< 'null' > "$body"
fi
cat "$body" >> "$GITHUB_STEP_SUMMARY"
[ -n "$PR_NUMBER" ] || continue
comments="repos/$GITHUB_REPOSITORY/issues/$PR_NUMBER/comments"
id=$(gh api --paginate "$comments" \
| jq -rs --arg m "$marker" '[.[][] | select(.user.login == "github-actions[bot]"
and (.body | startswith($m))) | .id] | first // empty')
payload=$(jq -n --rawfile body "$body" '{body: $body}')
if [ -n "$id" ]; then
gh api --method PATCH "repos/$GITHUB_REPOSITORY/issues/comments/$id" --input - <<< "$payload" > /dev/null
else
gh api --method POST "$comments" --input - <<< "$payload" > /dev/null
fi
done
The workflow has four jobs:
| Job | Runs on | Has your VibeView token | What it does |
|---|---|---|---|
ios | ubuntu-latest | Yes | Starts a cloud build of the ios entry in vibeview.json, streams its log (collapsed in the job log, with the last 100 lines repeated when the build fails), takes the finished build’s id, and runs the app’s tests against it. |
build-android | ubuntu-latest | No | Your Android build. It uploads the APK as a workflow artifact. |
android | ubuntu-latest | Yes | Uploads that APK to VibeView, takes the new build’s id, and runs the app’s tests against it. |
report | ubuntu-latest | No | Writes the job summary and the pull request comments. It is the only job that can write to the pull request. |
Don’t ship one of the platforms? Delete its jobs and remove it from the report job’s needs.
Reading the results
- The platform jobs pass when every test ran and passed, and fail otherwise.
vibeview run-checksexits0when every test passed,1when a test failed, and2when the run could not complete (a group it can’t find, a build of another app, a test that did not run, a timeout, or a cancelled run). - The pull request comment, one per platform, is updated in place on every run. It names the commit it tested and links the workflow run, so a comment left from an earlier push (for example when a newer run was cancelled) is easy to spot. It links the run, has a row per group (and one for the tests in no group), a list of the tests (each linked to its run page, with the reason a test failed or did not run), and the usage credit the run billed (tests that ran on your own AI provider key aren’t counted). A run of more than 100 tests lists the ones that did not pass first. A test that passed with visual differences from its baseline shows a ⚠️ instead of a ✅: this is informational and doesn’t fail the job.
- The job summary of the workflow run shows the same content, also for runs that aren’t on a pull request.
- Commit statuses, if your organization has connected GitHub: one for each group that runs, and for tests in no group one named after the app, or after the test when there is only one. To block merging, require the workflow’s jobs, not these statuses. See GitHub checks.
Costs
- Each device of a run uses a live device session, which counts toward your organization’s devices at once and streaming minutes like any other session (see Billing). When every device your plan runs at once is in use, a run waits for one to free up instead of failing (up to 30 minutes, after which it ends in an error and never starts); the CLI shows it as queued. When the month’s streaming minutes are used up and overage is off (or your usage credit can’t cover overage), the run is refused with the same message the dashboard shows.
- In
hybridmode, steps with a learned path replay without the AI agent. Steps that use the AI agent are billed to usage credit, unless you use your own AI provider key (see Usage credit). - The iOS cloud build is billed like any other cloud build.
- The workflow skips pull requests that change only Markdown files or the
docs/folder (paths-ignore), and a new push to a pull request cancels the run still going for the previous one (concurrency).
Retries
Retries are off unless you ask for them. To retry a failed test once, pass --retry to vibeview run-checks or run-test, or retry_failed: true in the API (see Start a Run). The retry runs on the same device, after a fresh start of the app, and is its own run: the first attempt keeps its failure and the retry decides the result. A test that fails and then passes on the retry passes the run and is marked flaky. A retry never repeats a test that failed because its device session ended. A retried test uses AI and streaming minutes again, like any run. When vibeview run-test retried the test, its result links to the retry’s run page (Retry: <link>) and then to the first attempt’s (First attempt (failed): <link>); JSON output has the retry’s link in url and the first attempt under first_attempt, and JUnit output links the retry.
Without retries, a test is still marked flaky when both passes and failures show up among its recent runs (see The test list). --no-retry is still accepted, so existing scripts keep working, but it changes nothing.
Tests that were not run
A test that didn’t run because an earlier test failed under Stop on first failure shows as Not run (“Not run: an earlier test failed, and this run stops at the first failure.”). So does a test of a vibeview run-checks run that didn’t run because an earlier one was stopped for usage credit or an AI model problem, with that reason. The API keeps its status as cancelled and adds not_run: true; JUnit output reports it as skipped, not as an error.
Blocked runs
A run that couldn’t finish for a reason that isn’t your app (the device or session was lost, the app couldn’t be installed, or the run was stopped because usage credit ran out) is reported as blocked, not as a failure. GitHub gets an error status instead of failure, and the run.blocked webhook event is sent instead of run.failed. See Webhooks and Slack.
Security
The template is written to be safe on a public repository:
- Least privilege. The workflow token can only read the repository. Only the
reportjob may write, and only to pull requests. The build job never sees the VibeView token, so a pull request’s build scripts can’t read it, and within the platform jobs only the steps that call VibeView get it. - No expressions in scripts. Every value reaches a script through
env:, never through${{ }}insiderun:. Test names, step text and error messages (which can quote text from your app’s screen) only ever reach the comment as escaped Markdown, built from files withjqand posted withgh api. - Forks and Dependabot are skipped. GitHub gives their pull requests no secrets, so the jobs are skipped instead of failing. Never switch this workflow to
pull_request_targetto test them: that would run the pull request’s code with your token. To test a fork’s change, push it to a branch in your repository after review. - Pinned versions. Each action is pinned to a full commit SHA (the version is in the comment next to it), and the CLI to an exact version (
VIBEVIEW_CLI_VERSION). Let Dependabot bump the actions by adding thegithub-actionsecosystem to your.github/dependabot.yml, and bump the CLI version deliberately. - A dedicated token. Give this repository its own Developer-role token with CI only access and an expiry, and store it only as a repository (or environment) secret. A CI-only token can upload and build apps, submit builds to the stores (
vibeview submit) and follow their submissions, start and cancel test runs, and read their results, and nothing else; an expiring token stops working on its own if it’s forgotten. Before it expires, create a new one and update the secret. Delete it in Settings > API token if it leaks or when the repository no longer needs it. See CI-only tokens.
Customizing the workflow
Build iOS on your own macOS runner
Replace the cloud build with a build job of your own, like the Android one. Add this job:
build-ios:
name: Build iOS
if: >-
github.event_name != 'pull_request' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]')
runs-on: macos-15
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
# Replace with your own build: an iOS SIMULATOR build. For React Native,
# the Release configuration embeds the JS bundle.
- name: Build
run: |
npm ci
(cd ios && pod install)
xcodebuild -workspace ios/MyApp.xcworkspace -scheme MyApp -configuration Release \
-sdk iphonesimulator -destination 'generic/platform=iOS Simulator' \
-derivedDataPath build CODE_SIGN_IDENTITY=-
# Workflow artifacts drop file permissions, so zip the .app bundle first.
ditto -c -k --sequesterRsrc --keepParent \
build/Build/Products/Release-iphonesimulator/MyApp.app "$RUNNER_TEMP/app-ios.zip"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: app-ios
path: ${{ runner.temp }}/app-ios.zip
retention-days: 3
Then, in the ios job:
- Add
needs: build-ios, and remove theif:(the build job already has it). - Remove the
actions/checkoutstep and the Build in the cloud and Cancel the cloud build steps. - After Check the setup, copy the Android job’s
actions/download-artifactand Upload the build steps, withapp-androidchanged toapp-iosandapp-android.apktoapp-ios.zip.
Build Android in the cloud
Delete the build-android job. In the android job, remove needs: build-android, add the ios job’s if:, and replace the actions/download-artifact and Upload the build steps with the ios job’s actions/checkout, Build in the cloud and Cancel the cloud build steps, with --platform ios changed to --platform android (and the error message to match). The android entry of your vibeview.json must have a build block.
Apple TV and Android TV
Copy a platform job (and its build job), rename it tvos or androidtv, and in Run the tests change --platform to tvos or androidtv (in the job’s vibeview build --cloud command too, when it builds in the cloud). The CLI picks a TV device for a TV app on its own. Add the new job to the report job’s needs: the report labels it Apple TV or Android TV. An Android TV APK needs both the x86 and x86_64 ABIs (see Preparing your build).
Roku
Package the channel in your own job (the zip you would sideload), upload it, and run the channel’s tests against that build:
vibeview upload-app ./out/channel.zip --output json > upload.json
vibeview run-checks --app "$(jq -er '.app_id' upload.json)" --build "$(jq -er '.build_id' upload.json)" \
--commit-sha "$GIT_SHA"
To build the channel in VibeView instead, run vibeview build --cloud --platform roku --json the way the iOS job builds its app (see Cloud Builds) and pass its ids to --app and --build.
Each session installs the channel before the first test. The test’s start state applies: Clean app data and Fresh install remove the channel and install it again before each test, because a Roku keeps a channel’s saved data for as long as it is installed (see TV devices). Build the channel with the VibeView Roku plugin so its tests replay by element.
Run on pushes to your main branch
Add a push trigger. The platform jobs then run on every push to main too, and post commit statuses on that commit (there is no pull request to comment on, so the results go to the job summary):
on:
pull_request:
paths-ignore:
- '**/*.md'
- 'docs/**'
push:
branches: [main]
workflow_dispatch:
Mode and timeouts
--mode hybrid(the default, called Smart in the dashboard) replays learned paths and uses the AI agent for the rest.--mode ai(AI only) runs every step with the AI agent. See AI testing.- To start the same run without the CLI, call
POST /api/v1/tests/runs; see Tests API. --timeout 7200is for the whole run, and covers waiting for a free device as well as every test. Without it,run-checkswaits an hour. When it gives up, it cancels the run on VibeView before exiting.--timeouttakes whole seconds from 1 to 7200, and--modetakeshybrid(Smart) orai(AI only); any other value, includingreplay(the No AI mode, removed 27 November 2026), stops the command with exit code 2 before a run starts.- When VibeView is briefly busy and answers the start of a run with “try again in a moment”, the CLI waits and tries again for up to a minute before failing the job (see When VibeView is busy). Once the run has started, waiting never goes past
--timeout. - Keep each platform job’s
timeout-minutesabove the CLI’s total wait plus two minutes (and the build, for a cloud build), so the CLI stops first and cleans up. A cancelled or timed-out job stops the CLI (the run stepexecs it for that reason), and the CLI then cancels the run.
AI steps from test-spec.json
You can also describe a test in plain English in .vibeview/test-spec.json and have the AI agent run it. This suits AI coding agents that write the test along with the change. Prefer saved tests for regression testing: every run of a spec is a full AI run billed to usage credit, while saved tests replay their learned paths without AI.
{
"version": 1,
"test_name": "Login Flow",
"steps": [
"Launch the app",
"Tap the Sign In button",
"Enter 'testuser@example.com' in the email field",
"Enter 'password123' in the password field",
"Tap Submit",
"Verify the dashboard screen loads with a welcome message"
],
"context": "The app has a test account: testuser@example.com / password123. The Sign In button is on the first screen."
}
| Field | Type | Required | Description |
|---|---|---|---|
version | number | Yes | Schema version. Must be 1. |
steps | string[] | Yes | The test steps, in plain English, as you would explain them to a human tester. |
test_name | string | No | The test case’s name in VibeView. The step below defaults it to "CI Test". |
context | string | No | Background the AI agent uses on every step, such as test credentials or the app state to expect. |
To run it, replace Run the tests in a platform job with this step.
- name: Run the AI test from test-spec.json
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
BUILD_ID: ${{ steps.build.outputs.build_id }}
APP_ID: ${{ steps.build.outputs.app_id }}
run: |
out="$RUNNER_TEMP/vibeview"
spec=.vibeview/test-spec.json
if [ ! -f "$spec" ]; then
echo "::error::$spec not found. Is it committed? A .gitignore line that ignores the whole .vibeview/ directory keeps it out of git: see Keep test-spec.json in git."
exit 1
fi
if ! jq -e '.version == 1 and (.steps | type == "array" and length > 0)' "$spec" > /dev/null; then
echo "::error::$spec needs \"version\": 1 and a non-empty \"steps\" array."
exit 1
fi
jq '.steps' "$spec" > "$out/steps.json"
name=$(jq -r '.test_name // "CI Test"' "$spec")
context=$(jq -r '.context // ""' "$spec")
args=(--app "$APP_ID" --steps-file "$out/steps.json" --if-exists update --output json)
if [ -n "$context" ]; then args+=(--context "$context"); fi
vibeview create-test "$name" "${args[@]}" > "$out/test.json"
test_id=$(jq -er '.test_id' "$out/test.json")
exec vibeview run-test "$test_id" --build "$BUILD_ID" --commit-sha "$HEAD_SHA" \
--timeout 1800 --output json > "$out/result-$GITHUB_JOB.json"
This step needs actions/checkout in the job (the android job doesn’t have it yet). The report shows the test’s steps with the failure reason of a failed step. With the GitHub integration connected, the run posts a commit status named vibeview/<test name> (<platform>).
Keep test-spec.json in git
vibeview dev keeps local session state in the same .vibeview/ folder. So that state isn’t committed while test-spec.json still is, it writes a .vibeview/.gitignore inside the folder:
*
!test-spec.json
It doesn’t add lines to your project’s own .gitignore (older CLI versions added .vibeview/* and !.vibeview/test-spec.json there, which still work). A line that ignores the whole folder (.vibeview/, which even older versions added) keeps test-spec.json out of git: Git can’t re-include a file inside an ignored folder. The next vibeview dev replaces that line with .vibeview/* and !.vibeview/test-spec.json; you can also edit it yourself. Check with git check-ignore -v .vibeview/test-spec.json, which prints nothing when the file isn’t ignored. If the file is missing in CI, the step above fails with “not found”.
Keep in mind:
- The spec is read from the pull request, so anyone who can open a pull request in the repository can change the steps. They reach the CLI as a file and as quoted arguments, never as shell code.
--if-exists updatemakes each run overwrite the app’s test with this name that is in no group (or, with--group, in one of those groups), using the spec’s steps. Give it a name no other test of the app uses: an existing one with the same name is replaced. Two pull requests running at the same moment share the case, and the one that updates it last decides the steps both run. Without--if-exists,create-testreuses an identical case and refuses a different one.
Explore in your own CI
Explore can run after your build in any CI system, and fail the job on new problems. Upload the build, then explore it:
# GitHub Actions
- name: Upload build
id: upload
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
run: echo "build_id=$(vibeview upload-app ./app-release.apk --output json | jq -er '.build_id')" >> "$GITHUB_OUTPUT"
- name: Explore
env:
VIBEVIEW_API_TOKEN: ${{ secrets.VIBEVIEW_API_TOKEN }}
APP_ID: app_123 # your app's id, from `vibeview list-apps`
BUILD_ID: ${{ steps.upload.outputs.build_id }}
run: vibeview explore --app "$APP_ID" --build "$BUILD_ID" --minutes 10 --output junit > explore.xml
On any other system (set APP_ID to your app’s id):
BUILD_ID=$(vibeview upload-app ./app-release.apk --output json | jq -er '.build_id')
vibeview explore --app "$APP_ID" --build "$BUILD_ID" --fail-on new
The job fails (exit 1) on a new finding or one that came back, and passes when only known bugs were seen again; --fail-on any also fails on those. Exit 2 means the run could not finish. See explore for the options. Runs from the CLI keep your app’s ordinary problem list; to check each pull request on its own, use the GitHub App.
Other CI systems
On GitLab CI, CircleCI, Jenkins or any other system, install the CLI, set VIBEVIEW_API_TOKEN as a masked secret variable, and run the same commands:
npm install --global vibeview@0.80.0
# Upload your build and pin the run to it (a zipped simulator .app, or a
# .app directory, for iOS; an .apk for Android).
vibeview upload-app ./build/app-release.apk --output json > upload.json
APP_ID=$(jq -er '.app_id' upload.json)
BUILD_ID=$(jq -er '.build_id' upload.json)
vibeview run-checks --app "$APP_ID" --build "$BUILD_ID" \
--commit-sha "$(git rev-parse HEAD)" --output junit > vibeview-results.xml
Add --group "Smoke" (once per group) to run only those groups. Or build in the cloud and take both ids from the build_finished event:
vibeview build --cloud --platform ios --json > build.ndjson
APP_ID=$(jq -rs '[.[] | select(.event == "build_finished" and .status == "succeeded")] | last | .app_public_id // empty' build.ndjson)
BUILD_ID=$(jq -rs '[.[] | select(.event == "build_finished" and .status == "succeeded")] | last | .app_build_id // empty' build.ndjson)
--output junit writes a JUnit XML report most CI systems can display, with a link to each test’s run. --output json writes the result as one JSON document on stdout (progress goes to stderr). On an error, the JSON is a single {"event": "error", "message": "..."} object, and the JUnit report has one test case with an <error>. The exit codes are the same as in Reading the results. If the build you named is a debug build that needs a Metro dev server, the command prints a warning when the run starts, because the run will most likely stop at the app’s error screen: see Builds that need a Metro dev server.
GitLab CI
This job runs on merge request pipelines. It uploads the APK an earlier build-android job saved as an artifact, runs the app’s tests against it, and passes the JUnit report to GitLab, which shows it in the merge request’s test summary and the pipeline’s Tests tab; each test’s output holds the link to its run. The build-android job must also run on merge request pipelines, or needs: stops GitLab from creating the pipeline.
Add VIBEVIEW_API_TOKEN under Settings > CI/CD > Variables and tick Masked. Leave Protected off: a merge request pipeline gets a protected variable only when both of its branches are protected and the project allows it. Commit statuses go to GitHub only, so on GitLab the report is where the result shows, and --commit-sha only labels the runs with the commit.
vibeview-android:
image: node:22
needs: [build-android]
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
cache:
key: vibeview-cli
paths: [.npm/]
script:
- npm install --global --cache .npm vibeview@0.80.0
- |
vibeview upload-app build/app-release.apk --output json > upload.json
APP_ID=$(node -p 'require("./upload.json").app_id')
BUILD_ID=$(node -p 'require("./upload.json").build_id')
vibeview run-checks --app "$APP_ID" --build "$BUILD_ID" \
--commit-sha "$CI_COMMIT_SHA" --output junit > vibeview-results.xml
artifacts:
when: always
reports:
junit: vibeview-results.xml
CircleCI
Here is the same job on CircleCI. It takes the APK from the workspace (the build job ends with persist_to_workspace) and installs the CLI under the home folder, with no sudo, putting it on the later steps’ PATH through $BASH_ENV. Add VIBEVIEW_API_TOKEN to a context or to the project’s environment variables. store_test_results runs even when a test fails, and the job’s Tests tab lists each test, with the link to its run in its output. When the repository is the one connected in VibeView’s GitHub integration, --commit-sha also posts commit statuses.
jobs:
vibeview-android:
docker:
- image: cimg/node:lts
steps:
- attach_workspace:
at: .
- restore_cache:
key: vibeview-cli-0.80.0
- run: |
npm install --global --prefix ~/.vibeview vibeview@0.80.0
echo 'export PATH="$HOME/.vibeview/bin:$PATH"' >> "$BASH_ENV"
- save_cache:
key: vibeview-cli-0.80.0
paths: [~/.npm]
- run: |
mkdir -p test-results
vibeview upload-app build/app-release.apk --output json > upload.json
APP_ID=$(node -p 'require("./upload.json").app_id')
BUILD_ID=$(node -p 'require("./upload.json").build_id')
vibeview run-checks --app "$APP_ID" --build "$BUILD_ID" \
--commit-sha "$CIRCLE_SHA1" --output junit > test-results/vibeview.xml
- store_test_results:
path: test-results
For iOS on either, build in the cloud with the vibeview build --cloud command above instead of uploading (with --profile preview for a React Native or Expo app), and pass its ids to --app and --build. That command parses the output with jq; on an image without jq, use the same node -p approach on the build_finished line.
Pinning a specific build
Every run command takes --build <id>, and the workflow template always passes it. Without it, a run uses the app’s latest build that doesn’t need a Metro dev server, which may not be the build your pipeline just made. When every build needs Metro, run-checks is refused and run-test starts on the latest one with a warning. The id is the numeric build id that upload-app --output json returns as build_id and a cloud build reports as app_build_id. You can also find it on the app’s page under Build history, or with vibeview list-builds <app>. A --build value that isn’t a build id (a typo such as 12a) stops the command with exit code 2; it never falls back to the latest build.
vibeview run-checks --app <app-id> --build 142
vibeview run-test <test-id> --build 142
In the API it is build_id: of a device in Start a Run, or in the body of POST /api/v1/ci/run-test.
run-checks and run-test also take --platform to run on another platform of the same form factor: the run uses the app you linked to the test’s app as the same product (see Same app on other platforms), or, if none is linked, the app with the same bundle id or package. The run uses the test data and notes of the platform it runs on (see Linked apps). A phone test never runs on a TV.
Reading run results
Run commands are async: the server accepts the request and returns its id immediately, and the CLI polls until the run completes. run-checks polls GET /api/v1/tests/batches/{id}: its tests are in lanes[].runs[].tests[], one lane per device. run-test polls GET /api/v1/ci/runs/{run_id}. This section documents the runs payload for programmatic consumers who call the endpoint directly.
Response shapes
The poll response has two shapes depending on whether the run is a single test or a group.
type: "test_run" — a single test case run. Top-level run fields plus a steps[] array (present once the run reaches a terminal status):
{
"run_id": "tr_abc123",
"type": "test_run",
"status": "failed",
"case_name": "Login Flow",
"duration_ms": 8420,
"run_url": "https://vibeview.io/tests/runs/tr_abc123",
"model_used": "claude-4-sonnet",
"progress": null,
"steps": [
{
"step": "Tap the Sign In button",
"status": "failed",
"error": "Element not found: Sign In button",
"error_kind": "element_not_found",
"error_kind_description": "The element the step needed was not present or could not be located on screen.",
"duration_ms": 3100,
"screenshot_url": "/api/v1/tests/test-runs/tr_abc123/screenshots/step_1.jpg",
"screenshot_signed_url": "https://vibeview.io/api/v1/public/screenshots/tr_abc123/step_1.jpg?exp=1746835200&sig=abc123",
"iteration_screenshots": []
}
]
}
While the run is still in flight, steps is absent and progress carries the live step-progress events instead; progress is null once the run is terminal.
assertion_results and assertions_summary are deprecated and always null.
type: "suite_run" — a group run. Top-level run fields plus a test_runs[] array of per-case entries. total_cases is the group’s full case count — test_runs[] only contains cases that have started, so use total_cases as the denominator for “N/M complete”. The top-level run_url points at this group run’s own results page (/tests/runs/{run_id}); each per-case entry’s url points at that case run’s own page.
{
"run_id": "sr_def456",
"type": "suite_run",
"status": "failed",
"suite_public_id": "suite_abc123",
"suite_name": "Login Suite",
"duration_ms": 24800,
"run_url": "https://vibeview.io/tests/runs/sr_def456",
"total_cases": 4,
"test_runs": [
{
"public_id": "tr_ghi789",
"case_name": "Login Flow",
"status": "failed",
"duration_ms": 8200,
"error_message": "Visual mismatch on home screen",
"error_kind": "visual_regression",
"error_kind_description": "The screen differed from its visual baseline beyond the allowed threshold.",
"screenshot_signed_url": "https://vibeview.io/api/v1/public/screenshots/tr_ghi789/step_3.jpg?exp=1746835200&sig=xyz789",
"url": "https://vibeview.io/tests/runs/tr_ghi789"
}
]
}
Both shapes also carry started_at, finished_at, and error_message at the top level. While a run is waiting for a device (status: "queued"), the payload includes a queue block with entry_id, position, specific_device_id, reason: why it waits (devices_busy, devices_updating or plan_limit), or null when VibeView can’t tell, and priority. priority is high on paid plans and low on Free. When every device is busy, paid plans’ requests start first, so a Free request’s position can go up.
screenshot_url vs screenshot_signed_url
Each failed step or group case includes two screenshot fields:
screenshot_url— a relative API path (/api/v1/tests/test-runs/{run_id}/screenshots/{file}). Resolve it against your VibeView API host and send anAuthorization: Bearer <token>header to fetch it. A CI-only token can fetch it too, for runs in its own organization.screenshot_signed_url— a signed, time-limited public URL. No auth header needed. Returnsimage/jpegdirectly (suitable for embedding in Slack messages, PR comments, or email). Expires after 7 days; returns HTTP 403 if expired or the signature is invalid, and HTTP 404 once the run is gone (its test or the account was deleted) or its run details were removed.
Both fields are null once the run’s screenshots have been removed, after the period your plan keeps them (from January 11, 2027; see How long run details are kept). A screenshot_url you saved earlier then answers 410 with detail.code run_details_expired. The run’s statuses and results stay, and details_expired_at (on a test run’s status, and on each case of a group run) says when they were removed; it is null while they are kept.
error_kind values
The error_kind field classifies why a step or group case failed. It is populated for failed or errored steps/cases and null for passed ones. Every payload that carries error_kind also carries error_kind_description — a human-readable sentence explaining the classification.
AI-supplied — the AI agent picks these when it calls step_failed:
| Value | Description |
|---|---|
element_not_found | The element the step needed was not present or could not be located on screen. |
app_unresponsive | The screen was frozen or no UI rendered, so the step could not proceed. A screen that shows normal UI but did not change after the agent’s taps is reported as wrong_state, not app_unresponsive. |
app_bug | The app crashed or behaved incorrectly (e.g. an error dialog or clearly wrong screen). |
wrong_state | The app was on a different screen than the step expected. |
assertion_mismatch | A check the AI agent made on the screen was not true. |
blocked | The step could not run because an external precondition was unmet (e.g. missing test data, login wall, paywall). |
needs_human | The failure was genuinely ambiguous and needs a person to judge. |
System-supplied — set in code when the cause is known:
| Value | Description |
|---|---|
assertion_failed | A check on the screen, such as a Verify step’s, did not hold. |
max_iterations | The step needed more AI turns than the run allows. Split it into smaller steps, or raise the limit in AI settings. |
aborted | The step was stopped before it could complete: a safety guard halted the run (e.g. the run reached its AI spending limit), or a learned path’s action could not be replayed and the step could not fall back to AI (for example a device error). |
visual_regression | The screen differed from its visual baseline beyond the allowed threshold. |
Fallback:
| Value | Description |
|---|---|
unknown | The failure could not be classified (older run, or an unrecognized category). |
For webhook payloads that also carry error_kind, see the error_kind table in the Webhooks & Slack guide.
Choosing which groups run
List an app’s groups, with the name and id --group takes:
vibeview list-groups --app <app-id>
Then name them, once per group (up to 20). They run one after another, in the order you give:
vibeview run-checks --app "$APP_ID" --group Login --group "Checkout flow" --build "$BUILD_ID" --commit-sha "$GIT_SHA"
In the workflow template, add the repository variable VIBEVIEW_GROUPS (Settings > Secrets and variables > Actions > Variables) with one group name or id per line. Empty or missing, every test runs.
- Names match in any case. A name that two groups share is refused, and the message lists their ids: use an id.
- Both platform jobs use the same variable. When your iOS and Android apps have groups of their own, replace
VV_GROUPSin each job’senv:with that platform’s groups. - A group that isn’t in the app, or in an app linked to it, stops the job before anything runs.
To pin a run to one device, list the devices with vibeview list-devices and pass --device.
Running a group only when certain files change
Give that group its own workflow, triggered by the paths it covers. For example, a copy of the template whose trigger is:
on:
pull_request:
paths:
- 'src/profiles/**'
and whose VV_GROUPS is the group’s name in its jobs’ env: (VV_GROUPS: Profiles). Change the comment marker too if both workflows comment on the same pull request: the report finds its comment by the <!-- vibeview-ci:<job> --> marker, so rename the jobs (for example ios-profiles).
Moving to run-checks
vibeview run-suite, run-suites and list-suites are deprecated and keep working for now. run-checks and list-groups replace them, from CLI 0.80.0:
| Before | Now |
|---|---|
vibeview run-suite <group-id> | vibeview run-checks --app <app-id> --group <group-id> |
vibeview run-suites --tag smoke --platform ios | vibeview run-checks --app <app-id> --group Login --group Checkout |
vibeview list-suites | vibeview list-groups --app <app-id> |
Workflow variable VIBEVIEW_TAG | VIBEVIEW_GROUPS, one group per line |
Tags can no longer be added or changed. run-suites --tag still runs the groups that already have the tag, at the same time, up to the devices your plan runs at once.
What changes for your pipeline:
- Tags no longer choose what runs: name the groups, or run every test of the app.
--timeoutis for the whole run (it was per group), and an hour when you leave it out.- All groups run in one device session, one after another, and each platform you name gets its own device.
--output jsonis one run, with the tests inlanes[].runs[].tests[].- Groups you name keep their commit status names. Two or more tests in no group share one, see GitHub checks.
Version History
| Version | Date | Changes |
|---|---|---|
| 1 | 2026-03-30 | Initial test-spec.json schema: version, steps, context, test_name |