add fine tuning and unit testing
Some checks failed
tests / test (push) Failing after 44s

This commit is contained in:
2025-12-31 21:25:35 +01:00
parent 3285cd2383
commit d0512b43c9
7 changed files with 762 additions and 94 deletions

View File

@@ -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.