Agent skill

testing

Run linting and tests for Weaver SDK. Works in any worktree.

Stars 13
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/nex-agi/weaver/tree/main/.claude/skills/testing

SKILL.md

Weaver SDK Testing Skill (Worktree-Aware)

How to Use

  1. Read agent instructions at .claude/agents/testing/AGENT.md
  2. Invoke Task tool with subagent_type="testing" (specialized agent)
  3. Agent will lint and run all tests

Prerequisites

Verify you're in the correct worktree:

bash
git rev-parse --show-toplevel
git branch --show-current

Testing Workflow

bash
# 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

bash
# 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

bash
# 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]

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results