Class_generator/tests/README.md
StillHammer f5cef0c913 Add comprehensive testing suite with UI/UX and E2E integration tests
- Create complete integration test system (test-integration.js)
- Add UI/UX interaction testing with real event simulation (test-uiux-integration.js)
- Implement end-to-end scenario testing for user journeys (test-e2e-scenarios.js)
- Add console testing commands for rapid development testing (test-console-commands.js)
- Create comprehensive test guide documentation (TEST-GUIDE.md)
- Integrate test buttons in debug panel (F12 → 3 test types)
- Add vocabulary modal two-progress-bar system integration
- Fix flashcard retry system for "don't know" cards
- Update IntelligentSequencer for task distribution validation

🧪 Testing Coverage:
- 35+ integration tests (architecture/modules)
- 20+ UI/UX tests (real user interactions)
- 5 E2E scenarios (complete user journeys)
- Console commands for rapid testing
- Debug panel integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-28 23:04:38 +08:00

42 lines
1.3 KiB
Markdown

# Tests Directory
## Structure
### `ai-validation/`
Collection of AI scoring system validation tests created during development.
**Key Test Files:**
- `test-all-outputs.js` - Comprehensive test of all exercise types with both providers
- `test-variance-quick.js` - Quick variance test without cache interference
- `test-spanish-bug.js` - Specific test for translation bug that was fixed
- `test-strict-scoring.js` - Validation of strict scoring rules
- `test-final-validation.js` - Production readiness validation
**Debug Files:**
- `debug-*.js` - Various debugging utilities for AI system development
- `compare-instances.js` - Comparison between LLMValidator and direct IAEngine
**Historical Tests:**
- Tests documenting the development process and bug fixes
- Comprehensive validation achieving 100% success rate
## Running Tests
From project root:
```bash
# Run comprehensive validation
node tests/ai-validation/test-all-outputs.js
# Quick variance test
node tests/ai-validation/test-variance-quick.js
# Test specific scenarios
node tests/ai-validation/test-strict-scoring.js
```
## Notes
- All tests require proper API keys in `.env` file
- Cache is currently disabled for accurate testing
- Tests validate real AI responses (no mock/fallback)
- Achieved 100% validation success rate in December 2024