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
If GNU make is required in your environment, use the repo's `gmake` shim:
16
-
```
17
-
PATH=/tmp/gmake-bin:$PATH ./run.sh teardown
18
-
PATH=/tmp/gmake-bin:$PATH ./run.sh setup
19
-
```
20
-
21
-
`/tmp/gmake-bin` is just a local shim directory with `make` pointing to GNU Make. Create it with:
22
-
```
23
-
mkdir -p /tmp/gmake-bin
24
-
ln -sf /usr/local/bin/gmake /tmp/gmake-bin/make
25
-
```
26
-
27
15
If `./run.sh setup` backgrounds daemons that die when the shell exits, run setup and the target test in the same shell:
28
16
```
29
-
PATH=/tmp/gmake-bin:$PATH ./run.sh teardown
30
-
PATH=/tmp/gmake-bin:$PATH ./run.sh setup
31
-
PATH=/tmp/gmake-bin:$PATH go test ./pkg/testrunner -count 1 -v -timeout 10m -run "TestAuthflow/<folder>/<filename_without_extension>"
17
+
./run.sh teardown
18
+
./run.sh setup
19
+
go test ./pkg/testrunner -count 1 -v -timeout 10m -run "TestAuthflow/<folder>/<filename_without_extension>"
32
20
```
33
21
34
22
Do not assume `zsh`. Run those commands sequentially in the developer's current shell.
@@ -305,20 +293,6 @@ If the e2e environment may be stale (e.g. first run in this session, or migratio
305
293
make teardown && make setup
306
294
```
307
295
308
-
If plain `make` fails in this repo, use:
309
-
310
-
```
311
-
PATH=/tmp/gmake-bin:$PATH ./run.sh teardown
312
-
PATH=/tmp/gmake-bin:$PATH ./run.sh setup
313
-
```
314
-
315
-
If `/tmp/gmake-bin` does not exist yet, create it first:
316
-
317
-
```
318
-
mkdir -p /tmp/gmake-bin
319
-
ln -sf /usr/local/bin/gmake /tmp/gmake-bin/make
320
-
```
321
-
322
296
Then run the new test(s):
323
297
324
298
```
@@ -328,9 +302,9 @@ cd e2e && go test ./pkg/testrunner/ -count 1 -v -timeout 10m -run "TestAuthflow/
328
302
If the authgear/e2e daemons are started by `./run.sh setup` and do not survive shell exit, combine setup and test in one shell:
329
303
330
304
```
331
-
PATH=/tmp/gmake-bin:$PATH ./run.sh teardown
332
-
PATH=/tmp/gmake-bin:$PATH ./run.sh setup
333
-
PATH=/tmp/gmake-bin:$PATH go test ./pkg/testrunner -count 1 -v -timeout 10m -run "TestAuthflow/<folder>/<filename_without_extension>"
305
+
./run.sh teardown
306
+
./run.sh setup
307
+
go test ./pkg/testrunner -count 1 -v -timeout 10m -run "TestAuthflow/<folder>/<filename_without_extension>"
334
308
```
335
309
336
310
If a test fails, read the error output, fix the test file, and re-run. Do not report the tests as done until they pass.
@@ -344,7 +318,7 @@ If a test fails, read the error output, fix the test file, and re-run. Do not re
344
318
5. When testing audit events, always check the JSON path includes `payload`: `data->'payload'->'...'`.
345
319
6. Prefer `ORDER BY <stable_column>, created_at` over `ORDER BY created_at` alone to avoid flaky ordering.
346
320
7. To focus on one test during development, pass `-run "TestAuthflow/path/to/test"` to the test command.
347
-
8. After environment changes, run `make teardown && make setup` to apply latest migrations. If `make` is broken in the current environment, use the `gmake` shim via `PATH=/tmp/gmake-bin:$PATH`.
321
+
8. After environment changes, run `make teardown && make setup` to apply latest migrations.
348
322
9. Always write JSON values in `input`, `output`, `query_output`, and `audit_query_output` as multi-line for readability. Prefer:
0 commit comments