Skip to content

Commit c948075

Browse files
authored
test(lifecycle): cover quit crash and relaunch (#1460)
1 parent c0b5fb2 commit c948075

11 files changed

Lines changed: 1695 additions & 11 deletions

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ jobs:
327327
timeout-minutes: 60
328328
env:
329329
COVERAGE_THRESHOLD: 70
330+
PINE_LIFECYCLE_DIAGNOSTICS: ${{ github.workspace }}/LifecycleDiagnostics
330331
steps:
331332
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
332333

@@ -351,7 +352,7 @@ jobs:
351352
- name: Unit Tests
352353
run: |
353354
RESULT_BUNDLE="TestResults.xcresult"
354-
rm -rf "$RESULT_BUNDLE"
355+
rm -rf "$RESULT_BUNDLE" LifecycleDiagnostics
355356
TEST_STARTED_AT="$(date +%s)"
356357
357358
set +e
@@ -385,6 +386,17 @@ jobs:
385386
--started-at "$TEST_STARTED_AT" \
386387
--github-summary
387388
389+
- name: Upload Unit Test Results
390+
if: success() || failure()
391+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
392+
with:
393+
name: unit-test-results
394+
path: |
395+
TestResults.xcresult
396+
LifecycleDiagnostics
397+
retention-days: 7
398+
if-no-files-found: warn
399+
388400
# Snapshot references must be recorded on a runner: a developer Mac
389401
# rasterizes SF Symbols and text differently enough to sit outside the
390402
# per-test tolerance. When a snapshot test fails the harness writes the

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ assets/screenshot-unknown-*.png
3939
# Snapshot test failure artifacts
4040
PineTests/SnapshotTests/__Snapshots__/*.actual.png
4141

42+
# Sanitized process-level test diagnostics uploaded by CI
43+
LifecycleDiagnostics/
44+
4245
# Agents
4346
.claude/
4447
.pi/

0 commit comments

Comments
 (0)