Files
voidea/docs/instructions/02-tester.md
T

92 lines
1.3 KiB
Markdown

# Tester Instructions - VoIdea
**Date:** 2026-05-10
---
## Testing Overview
### Test Types
1. **Unit Tests** - tests/unit/
- Test individual functions/methods
- Mock external dependencies
2. **Integration Tests** - tests/integration/
- Test API endpoints
- Test database operations
- Test with real services
3. **E2E Tests** - docs/specs/e2e/
- User scenarios
- Cross-module behavior
---
## Running Tests
`ash
# All tests
pytest
# Specific file
pytest tests/unit/test_services.py -v
# With coverage
pytest --cov=app --cov-report=html
# Watch mode
pytest --watch
`
---
## Writing Tests
`python
async def test_create_idea():
# Arrange
user = await create_test_user()
# Act
result = await idea_service.create(
user_id=user.id,
title="Test Idea"
)
# Assert
assert result.title == "Test Idea"
assert result.user_id == user.id
`
---
## Test Coverage Goals
- Minimum: 1 smoke test per endpoint
- Target: 80% coverage
- Critical paths: 100%
---
## Bug Reporting
Report format:
1. Description
2. Steps to reproduce
3. Expected vs actual
4. Logs/screenshots
5. Environment
---
## QA Agents
- QATesterAgent: Functional testing, temp users
- FixAgent: Bug fixes
- UITestAgent: Visual testing
---
*Updated: 2026-05-10*