Class_generator/tests
StillHammer 29bc112c0c Unify vocabulary persistence system - remove dual systems
- Simplified loadPersistedVocabularyData() to use only VocabularyProgressManager
- Updated calculateVocabularyProgress() to use unified data structure
- Removed old system references from knowledge panel data loading
- Fixed field names (drsDiscovered, drsMastered) for unified system
- Knowledge panel now displays vocabulary progress correctly

 TESTED: Vocabulary Knowledge panel working with unified system

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 13:39:00 +08:00
..
ai-validation Add comprehensive testing suite with UI/UX and E2E integration tests 2025-09-28 23:04:38 +08:00
root-cleanup Unify vocabulary persistence system - remove dual systems 2025-09-30 13:39:00 +08:00
README.md Add comprehensive testing suite with UI/UX and E2E integration tests 2025-09-28 23:04:38 +08:00

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:

# 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