This commit is contained in:
@@ -53,3 +53,10 @@ Main plugin: https://gitea.mschirmer.com/m13r/test-samurai.nvim
|
||||
## Usage
|
||||
|
||||
Use the standard `test-samurai.nvim` commands (e.g. `TSamNearest`, `TSamFile`, `TSamAll`, `TSamFailedOnly`).
|
||||
|
||||
## Notes
|
||||
|
||||
- Subtests (`t.Run`) are reported as separate entries via `go test -json -v`.
|
||||
- Subtest selection uses anchored patterns (`^Parent$/^Sub$`) to avoid matching the same subtest name in other tests.
|
||||
- `go test` cannot scope execution to a single file; if two tests in the same package share the same test and subtest names, both will run.
|
||||
- Result lists are ordered so that parent tests appear before their subtests within each status.
|
||||
|
||||
Reference in New Issue
Block a user