Skip to content

Commit 01bc43e

Browse files
committed
docs: -run single test instruction
1 parent 5cbe7cb commit 01bc43e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ Run a specific test by name:
3131
go tool gno test -run TestPacketValidateBasic ./gno.land/p/aib/ibc/types
3232
```
3333

34+
Run a single **filetest**: `-run` must match the full path to the test file,
35+
not just its name. A bare prefix like `-run z5a_` silently matches nothing (the
36+
run reports `ok` without executing the filetest); the pattern has to start with
37+
the package path:
38+
```bash
39+
go tool gno test -run ./gno.land/r/aib/ibc/apps/transfer/z5a_ ./gno.land/r/aib/ibc/apps/transfer/
40+
```
41+
3442
Update filetest golden output (`// Output:` and `// Events:` sections) automatically:
3543
```bash
3644
go tool gno test -update-golden-tests ./gno.land/r/aib/ibc/apps/transfer/

0 commit comments

Comments
 (0)