How skyuvaraj2007-web/nila-test-lab works
Nila TestLab AI is an educational programming lab for analyzing questions, generating and validating test cases, running reference and student code, and reviewing results. Its main workflow moves from a problem statement through analysis, test generation and input validation, then reference execution and student evaluation. The frontend also provides playground, history and export capabilities. Backend route wiring and several engine relationships are supported by excerpts or the source index; unsampled frontend service connections are left unasserted.
Main entry points: App.jsx Workbench shell · main.py FastAPI application · TestExecution.jsx Test execution · generate.py Generation endpoint
Components 34
Frontend workflow
- Workbench shell
frontend/src/App.jsx - Question analysis
frontend/src/pages/QuestionAnalysis.jsx - Test case generator
frontend/src/pages/TestCaseGenerator.jsx - Test case viewer
frontend/src/pages/TestCaseViewer.jsx - Test execution
frontend/src/pages/TestExecution.jsx - Code playground
frontend/src/pages/CodePlayground.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Lab exercises
frontend/src/pages/LabExercise.jsx - Run history
frontend/src/pages/History.jsx - Shared app state
frontend/src/context/AppContext.jsx - API client
frontend/src/services/api.js - Result export
frontend/src/services/exportService.js - Local data store
frontend/src/services/db.js
Problem analysis
- Question understanding
backend/services/analyzer_service.py - Input format parser
backend/services/input_format_parser.py - Constraint extraction
backend/services/constraint_extractor.py
Test design
- Universal test generator
backend/generators/universal_generator.py - Input validator
backend/services/input_validator.py - Input serializer
backend/services/input_serializer.py
Execution and evaluation
- Browser execution
frontend/src/services/browserExecutionService.js - Reference runner
frontend/src/services/referenceExecutionEngine.js - Output normalization
frontend/src/services/outputCaptureEngine.js - Student evaluation
frontend/src/services/studentEvaluationEngine.js - Host execution service
backend/services/execution_service.py - Language registry
backend/services/language_registry.py
Backend API
- FastAPI application
backend/main.py - API schemas
backend/models/schemas.py - Analysis endpoint
backend/routes/analyze.py - Generation endpoint
backend/routes/generate.py - Upload endpoint
backend/routes/upload.py - Execution endpoint
backend/routes/execute.py - Languages endpoint
backend/routes/languages.py - Health endpoint
backend/routes/health.py
Other components
- Lab user
Connections 38
- Lab user → Workbench shell: uses
- Workbench shell → Question analysis: routes to
frontend/src/App.jsx - Workbench shell → Test case generator: routes to
frontend/src/App.jsx - Workbench shell → Test case viewer: routes to
frontend/src/App.jsx - Workbench shell → Test execution: routes to
frontend/src/App.jsx - Workbench shell → Code playground: routes to
frontend/src/App.jsx - Workbench shell → Dashboard: routes to
frontend/src/App.jsx - Workbench shell → Lab exercises: routes to
frontend/src/App.jsx - Workbench shell → Run history: routes to
frontend/src/App.jsx - Workbench shell → Shared app state: uses
frontend/src/App.jsx - FastAPI application → Analysis endpoint: registers
backend/main.py - FastAPI application → Generation endpoint: registers
backend/main.py - FastAPI application → Upload endpoint: registers
backend/main.py - FastAPI application → Execution endpoint: registers
backend/main.py - FastAPI application → Languages endpoint: registers
backend/main.py - FastAPI application → Health endpoint: registers
backend/main.py - Analysis endpoint → Question understanding: delegates to
- Question understanding → Input format parser: parses with
backend/services/analyzer_service.py - Question understanding → Constraint extraction: extracts with
backend/services/analyzer_service.py - Generation endpoint → Input validator: validates with
backend/routes/generate.py - Generation endpoint → Input format parser: parses contract
backend/routes/generate.py - Generation endpoint → Constraint extraction: extracts constraints
backend/routes/generate.py - Generation endpoint → Universal test generator: generates with
- Universal test generator → Input format parser: parses with
backend/generators/universal_generator.py - Universal test generator → Constraint extraction: extracts with
backend/generators/universal_generator.py - Universal test generator → Input serializer: serializes via
backend/generators/universal_generator.py - Execution endpoint → Host execution service: delegates to
- Host execution service → Language registry: checks language
backend/services/execution_service.py - Reference runner → Output normalization: classifies output
frontend/src/services/referenceExecutionEngine.js - Student evaluation → Output normalization: normalizes output
frontend/src/services/studentEvaluationEngine.js - Shared app state → Local data store: persists state
- Test execution → Student evaluation: evaluates results
- Test execution → Browser execution: runs code
- Test case generator → API client: requests generation
- Question analysis → API client: requests analysis
- API client → FastAPI application: sends API requests
- Test execution → Reference runner: runs reference suite
- Test execution → Result export: exports results