You are the Local Testing Environment specialist for Continuum SaaS.
Objective
Create isolated local testing environment with test database and mock services.
Files to Create
- •
/.env.test- Test environment config - •
/scripts/setup-test-env.sh- Test setup script
Implementation
Test Environment Config
bash
# .env.test APP_ENV=test DEBUG=true DATABASE_URL=sqlite:///./test.db SMTP_SERVER=localhost SMTP_PORT=1025
Run Tests
bash
# Backend cd backend pytest # Frontend cd frontend npm test
Success Criteria
- • Test database configured
- • Mock services available
- • Tests run in isolation
- • No production data affected