โก EXECUTION INSTRUCTIONS FOR CLAUDE
When this command is invoked, YOU (Claude) must execute these steps immediately:
This is NOT documentation - these are COMMANDS to execute right now.
Use TodoWrite to track progress through multi-phase workflows.
๐จ EXECUTION WORKFLOW
Phase 1: Execute Documented Workflow
Action Steps:
- Review the reference documentation below and execute the detailed steps sequentially.
๐ REFERENCE DOCUMENTATION
/tester - End2End Tests (Real Mode)
Purpose: Run end-to-end tests using actual services (Firestore + Gemini)
Usage: /tester
Script: ./claude_command_scripts/tester.sh
Description
Runs the full end2end test suite using real services:
- Real Firestore database writes and reads
- Real Gemini API calls
- Full persistence validation (submit โ reload โ verify)
- Validates actual system behavior
Prerequisites
Required Environment Variables:
export REAL_FIREBASE_PROJECT=worldarchitect-test
export REAL_GEMINI_API_KEY=your_test_api_key
Test Firebase Project:
- Separate from production Firebase project
- Dedicated for testing with cleanup policies
- Same schema as production
Environment
TEST_MODE=real
TESTING=true
FIREBASE_PROJECT_ID=$REAL_FIREBASE_PROJECT
GEMINI_API_KEY=$REAL_GEMINI_API_KEY
Test Coverage
- โ
API endpoint contracts
- โ
Response structure validation
- โ
Real service behavior
- โ
Database persistence validation
- โ
Network/timing issues
- โ
Service integration edge cases
Safety Features
- โ ๏ธ Confirmation prompt before running (costs money)
- ๐งน Automatic test data cleanup
- โฑ๏ธ Test duration tracking
- ๐ Requires explicit environment setup
Benefits
- Bug Detection: Catches issues like Firestore persistence bugs
- Real Behavior: Tests actual service responses and timing
- Confidence: Validates production-like scenarios
- Integration: Tests full service chain
Costs & Considerations
- ๐ฐ Gemini API calls cost money (small amounts for testing)
- ๐ Slower than mock mode due to network calls
- ๐ง Requires test environment setup
- ๐งน Creates real data that needs cleanup
Related Commands
/teste - Mock mode (fast, free)
/testerc - Real mode with data capture
Output
Shows comprehensive test results including:
- Real service response validation
- Database persistence verification
- Performance timing data
- Service integration status