Files
hapi/ios/scripts/test-transcript.sh
T
weishu c2e3d16b7e feat(native): improve anchored chat scrolling and history loading
Add viewport-driven paging with layout acknowledgements, bounded retries, cancellation gates, and epoch-safe history retention.

Preserve transcript anchors and expansion state, fix tool-group identity collisions, and serialize Android history coordination on Main.

Reduce per-scroll composition and layout work; add native regression tests, CI coverage, and profiling guidance.
2026-09-10 16:22:36 +08:00

18 lines
861 B
Bash
Executable File

#!/usr/bin/env bash
# Isolated app-hosted UIKit layout tests; never installs into a user's device.
set -euo pipefail
cd "$(dirname "$0")/../.."
runtime=$(xcrun simctl list runtimes -j | python3 -c '
import json, sys
items = [x for x in json.load(sys.stdin)["runtimes"] if x.get("isAvailable") and x.get("name", "").startswith("iOS")]
print(max(items, key=lambda x: tuple(map(int, x["version"].split("."))))["identifier"])
')
device=$(xcrun simctl create "HAPI Transcript Tests" com.apple.CoreSimulator.SimDeviceType.iPhone-15 "$runtime")
trap 'xcrun simctl delete "$device" >/dev/null 2>&1 || true' EXIT
xcodebuild test -project ios/Hapi.xcodeproj -scheme Hapi \
-destination "platform=iOS Simulator,id=$device" \
-derivedDataPath "${HAPI_TEST_DERIVED_DATA:-/tmp/hapi-transcript-tests}" \
-parallel-testing-enabled NO CODE_SIGNING_ALLOWED=NO "$@"