1.3 KiB
1.3 KiB
Tester Instructions - VoIdea
Date: 2026-05-10
Testing Overview
Test Types
-
Unit Tests - tests/unit/
- Test individual functions/methods
- Mock external dependencies
-
Integration Tests - tests/integration/
- Test API endpoints
- Test database operations
- Test with real services
-
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:
- Description
- Steps to reproduce
- Expected vs actual
- Logs/screenshots
- Environment
QA Agents
- QATesterAgent: Functional testing, temp users
- FixAgent: Bug fixes
- UITestAgent: Visual testing
Updated: 2026-05-10