Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.96 KB

e2e-testing.md

File metadata and controls

60 lines (42 loc) · 1.96 KB

End-to-End Testing

Prerequisites

docker compose up -d
cd backend && uv run python scripts/reseed.py --scale 500
uv run uvicorn app.main:app --reload   # port 8000
cd client && cp .env.example .env && bun run dev   # port 3000

For CI and fast local tests, use --scale 100. For full chart density locally, use --scale 3000.

Development Credentials

Role Login Password
Admin admin@demo.com admin123
Faculty faculty@demo.com faculty123
Student Roll number from seed (e.g. 20240001) student123
Parent parent@demo.com parent123

Validation Checklist

Institution Admin

  • Login → dashboard shows KPIs + risk donut + department CGPA chart
  • Analytics → three tabs (Institutional / ML Predictions / At-Risk) with filters
  • Students / Faculty / Departments / Programs / Courses — list + create
  • Predictions — select student → run ML prediction
  • At-Risk — KPIs, charts, enriched table
  • Reports — analytical preview + download HTML/PDF

Faculty

  • Dashboard shows scoped stats and charts
  • Marks Entry — course → assessment → roster → bulk save
  • Attendance — bulk update attendance %
  • Results — semester results for assigned students
  • At-risk scoped to assigned students

Student

  • Dashboard with CGPA/SGPA progression and risk chart
  • Performance, predictions, improvement, goals, reports

Parent

  • Dashboard with child performance and risk overview
  • Performance, predictions, improvement, reports

Auth

  • Logout clears session; middleware redirects to login
  • Role routes blocked cross-portal
  • Token refresh on 401

Automated Coverage

Backend pytest covers auth, RBAC, tenant isolation, academic APIs, analytics chart aggregations, goals, reports, scoped analytics, and the full ML integration flow. CI seeds with --scale 100. Client lint and build run in CI.