Testing Guide
Testing Guide
Section titled “Testing Guide”Comprehensive testing ensures Querri remains reliable and maintainable.
Test Types
Section titled “Test Types”Unit Tests
Section titled “Unit Tests”Test individual functions and classes in isolation
Integration Tests
Section titled “Integration Tests”Test interaction between components
End-to-End Tests
Section titled “End-to-End Tests”Test complete user workflows
Frontend Testing
Section titled “Frontend Testing”Running Tests
Section titled “Running Tests”cd web-app
# Run all testsnpm run test
# Watch modenpm run test:watch
# Coverage reportnpm run test:coverageVitest Configuration
Section titled “Vitest Configuration”Located in vitest.config.js
E2E Testing with Playwright
Section titled “E2E Testing with Playwright”# Run E2E testsnpm run test:e2e
# Interactive modenpm run test:ui
# Against Docker environmentnpm run test:dockerBackend Testing
Section titled “Backend Testing”Running Tests
Section titled “Running Tests”cd server-api
# All testspoetry run pytest
# Specific test filepoetry run pytest tests/test_projects.py
# With coveragepoetry run pytest --cov=api --cov=querri_core
# Verbose outputpoetry run pytest -vTest Structure
Section titled “Test Structure”tests/├── test_api/│ ├── test_projects.py│ ├── test_steps.py│ └── test_auth.py├── test_core/│ ├── test_qdf.py│ └── test_connectors.py└── conftest.py