This guide covers how to write and run integration tests for Gofannon.
Integration tests verify that multiple components work together correctly. Unlike unit tests, they may involve real database connections, API calls, and Docker services.
# From webapp directory
cd webapp
# Run all integration tests
pnpm test:integration
# Run backend integration tests only
pnpm test:integration:backendIntegration tests are located in:
- Backend:
webapp/packages/api/user-service/tests/integration/ - E2E:
webapp/tests/e2e/
Integration tests require running Docker services:
# Start required services
docker compose up -d couchdb minioIntegration tests should:
- Test realistic scenarios with multiple components
- Use real (or containerized) services when appropriate
- Clean up test data after each test
- Be idempotent (can run multiple times safely)