You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integrationTests/utils/README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ This method should be used in the `before()` lifecycle hook for a test suite. It
34
34
1. Creates a Harper instance in a temporary directory
35
35
2. Assigns a unique loopback address from the loopback address pool
36
36
3. Starts Harper with test configuration (which self-installs)
37
-
4. Waits for Harper to be fully started (default: 5 seconds, configurable via `options.startupDelayMs`)
37
+
4. Waits for Harper to be fully started, waiting for the startup message to appear in stdout
38
38
5. Populates the `context.harper` object with connection details
39
39
40
40
**Important:** Always call `teardownHarper(ctx)` in the `after()` hook to properly clean up resources, or you will have phantom Harper processes after tests complete.
* Additional configuration options to pass to the Harper CLI.
82
+
*/
83
+
config:any;
84
+
/**
85
+
* Environment variables to set when running Harper.
86
+
*/
87
+
env:any;
80
88
}
81
89
```
82
90
83
91
**Properties:**
84
92
85
-
-**`startupDelayMs`** - `number` (optional) - Time in milliseconds to wait after starting Harper before considering it ready. Defaults to 5000 (5 seconds), or the value of the `HARPER_INTEGRATION_TEST_STARTUP_DELAY_MS` environment variable if set.
93
+
30000 (5 seconds), or the value of the `HARPER_INTEGRATION_TEST_STARTUP_TIMEOUT_MS` environment variable if set.
94
+
95
+
-**`config`** - `object` (optional) - Additional configuration options to pass to the Harper CLI.
96
+
-**`env`** - `object` (optional) - Additional environment variables to set when starting Harper.
97
+
-**`startupTimeoutMs`** - `number` (optional) - Timeout in milliseconds to wait for Harper to start. Defaults to
86
98
87
99
**Environment Variables:**
88
100
89
-
-`HARPER_INTEGRATION_TEST_STARTUP_DELAY_MS` - Sets the default startup delay for all tests when `startupDelayMs` is not explicitly provided
101
+
-`HARPER_INTEGRATION_TEST_STARTUP_TIMEOUT_MS` - Sets the default startup delay for all tests when `startupTimeoutMs` is not explicitly provided
0 commit comments