Skip to content

Commit c761d8f

Browse files
committed
chore: update docs
1 parent 71e49ca commit c761d8f

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
__default__: minor
3+
---
4+
5+
Startup crash detection now monitors apps during launch and reports crashes before the first test even begins, with detailed diagnostics for both iOS and Android. Physical iOS device support is included via `libimobiledevice`. Crash report selection on iOS simulators has been improved with a more reliable algorithm that tolerates timing variations.

website/src/docs/guides/ci-cd.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Both actions automatically:
2929
- Set up and configure the emulator/simulator based on your config
3030
- Install your app
3131
- Run the tests
32-
- Upload persisted crash artifacts from `.harness/crash-reports` when the run produces them
32+
- Upload crash reports from `.harness/crash-reports/` as workflow artifacts whenever a run produces them
3333

3434
The actions read your `rn-harness.config.mjs` file to determine the device configuration, so you don't need to hardcode emulator settings in your workflow.
3535

@@ -43,9 +43,15 @@ Both actions accept the following inputs:
4343

4444
## Crash Artifacts
4545

46-
When Harness resolves a crash artifact, it persists a copy under `.harness/crash-reports/` in the current working directory. Filenames include the Harness run timestamp and selected runner name so CI downloads stay easy to correlate.
46+
Harness monitors native crashes throughout the entire test lifecycle — including during **app startup**, before any test code runs. When the app crashes on launch (or at any point during the run), Harness captures the crash report and attaches a parsed stack trace to the failing test or startup error output.
4747

48-
The official GitHub Actions upload `.harness/crash-reports/**/*` automatically with `if-no-files-found: ignore`, so crash reports are available as workflow artifacts whenever a run produces them.
48+
Crash reports are persisted under `.harness/crash-reports/` in the current working directory. Filenames include the Harness run timestamp and selected runner name so CI downloads are easy to correlate with a specific workflow run.
49+
50+
The official GitHub Actions upload `.harness/crash-reports/**/*` automatically (with `if-no-files-found: ignore`), so crash reports appear as downloadable workflow artifacts whenever a run produces them — no extra configuration needed.
51+
52+
:::tip
53+
Startup crashes are treated as a first-class failure. If your app crashes before the bridge connects, Harness immediately reports it with the native crash details rather than timing out.
54+
:::
4955

5056
## GitHub Actions Example
5157

website/src/docs/platforms/android.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,9 @@ Supported extra value types in v1:
9191
- `string`
9292
- `boolean`
9393
- safe integers
94+
95+
## Native Crash Details
96+
97+
Harness monitors logcat output during both app startup and test execution, looking for fatal exceptions and ANRs in the process matching your `bundleId`. When a native crash is detected, Harness attaches the parsed crash information — including the exception type, message, and full stack trace — to the failing test or startup error.
98+
99+
Crash reports are also persisted under `.harness/crash-reports/` so they remain available for inspection after the test run, and the [official GitHub Actions](../guides/ci-cd) upload them automatically as workflow artifacts.

0 commit comments

Comments
 (0)