Use during planning to discover and document test patterns and conventions for writing consistent tests.
From workflowsnpx claudepluginhub eveld/claude --plugin workflowsThis skill uses the workspace's default tool permissions.
Automatically discover and document test patterns used in the project for reference during planning and implementation.
*_test.go, *.test.ts, test_*.py)tests/, __tests__/, alongside source)Find and document:
Identify testing frameworks:
Write to: thoughts/notes/testing.md
Use the template from templates/testing-reference.md and populate with discovered patterns.
---
last_updated: 2025-12-23T10:00:00Z
last_updated_by: Claude
project: my-project
---
# Test Patterns Reference
Last discovered: 2025-12-23
## Go Test Patterns
### File Organization
- **Location**: `*_test.go` files alongside source
- **Framework**: testify/require
- **Example**: `internal/auth/handler_test.go`
### Common Pattern: Table-Driven Tests
**Found in**: `internal/auth/handler_test.go:45-78`
```go
func TestAuthHandler(t *testing.T) {
tests := []struct {
name string
input string
expected string
}{
// test cases
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
require.Equal(t, tt.expected, result)
})
}
}
require for assertions that should stop testassert for non-critical checksmocks/ directory
## When to Use
Automatically invoked by the `plan` command if `thoughts/notes/testing.md` doesn't exist.