diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-02 21:54:05 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-02 21:54:05 +0300 |
| commit | d94fdaf92d7c66c012e819c73632be16f346b66f (patch) | |
| tree | c8e39c8c81ecceb589722ab7179ce2e1f82bbba2 /Taskfile.yaml | |
| parent | 29f634d3413924af3a9dd6f89983c29b5320fe66 (diff) | |
task 00p: add -race to default test task; add t.Parallel() to safe unit tests
- Enable -race flag on the default 'task test' command so race conditions
are caught by default, not only when running 'task test-race'
- Add t.Parallel() to all tests in internal/image/prompt_test.go (pure
function tests with no shared state)
- Add t.Parallel() to TestReadBatchFile and its subtests in batch package
(file I/O with t.TempDir(), no global state)
- Add t.Parallel() to TestValidateBulgarianText and its subtests in audio
package (pure string validation, no shared state)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Taskfile.yaml')
| -rw-r--r-- | Taskfile.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml index f4588d1..2158167 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -8,9 +8,9 @@ tasks: cmds: - go run ./cmd/totalrecall test: - desc: Run all tests + desc: Run all tests with race detector cmds: - - go test ./... + - go test -race ./... test-verbose: desc: Run all tests with verbose output |
