name: testing description: Run linting and tests for Weaver SDK. Works in any worktree.
Weaver SDK Testing Skill (Worktree-Aware)
How to Use
- Read agent instructions at
.claude/agents/testing/AGENT.md - Invoke Task tool with
subagent_type="testing"(specialized agent) - Agent will lint and run all tests
Prerequisites
Verify you're in the correct worktree:
git rev-parse --show-toplevel
git branch --show-current
Testing Workflow
# 1. Check formatting
make check-format
# 2. Run linters
make lint
# 3. Run tests
make test
# 4. Full CI (lint + test)
make ci
Test Commands
# All tests
pytest tests/ -v
# Specific test file
pytest tests/test_config.py -v
# Specific test
pytest tests/test_config.py::test_config_defaults -v
# With coverage
make test-cov
Lint Commands
# Format check (no changes)
black --check weaver/ tests/
isort --check-only weaver/ tests/
# Format (apply changes)
make format
# Pylint
pylint weaver/
# Mypy
mypy weaver/
# License headers
python tests/lint/check_license_header.py
Output Format
## Testing Summary
**Status:** PASS / WARNINGS / FAIL
### Lint Results
[black/isort/pylint/mypy output]
### Test Results
- Total: X | Passed: X | Failed: X | Skipped: X
### Failures
[Failed test details if any]
### Recommendations
[Actions to fix issues]