SPB Git

Repository Public

ui-test.sh 849 B 14 lines shellscript

1#!/usr/bin/env bash2# Author: Simon-Pierre Boucher — contact@spboucher.ai3# File: Scripts/ui-test.sh4# Description: Runs the XCUITest suite on the Debug app against the DEVELOPMENT backend (SSH tunnel + minted development session).5#6# Usage: Scripts/ui-test.sh        (the Mac must not be driven by something else meanwhile: the tests send real key events)7set -euo pipefail8cd "$(dirname "$0")/.."9eval "$(Scripts/dev-session.sh)"10xcodegen generate --quiet11TEST_RUNNER_SPCHAT_SERVER="$SPCHAT_SERVER" TEST_RUNNER_SPCHAT_SESSION_COOKIE="$SPCHAT_SESSION_COOKIE" \12  xcodebuild -project SPChat.xcodeproj -scheme SPChatUITests -configuration Debug -derivedDataPath build/DerivedData -destination 'platform=macOS,arch=arm64' test 2>&1 \13  | grep -E "error:|Test Case .*(passed|failed)|Executed|\*\* TEST|XCTAssert|skipped" | sed "s#$PWD/##" | sort -u14
Files main
Menu

Theme