Testing

How we ensure quality and reliability across the JavaMellow codebase.

πŸ“Š Coverage (Last Run)

Loading coverage…

πŸ”„ What Happens During Testing

1

Unit Tests

Vitest

Individual components and functions are tested in isolation.

  • β€’ Components render correctly
  • β€’ User interactions trigger expected handlers
2

Coverage Report

Vitest + v8

Code coverage measures which lines and functions are exercised by tests.

  • β€’ Statements, Branches, Functions, Lines
3

End-to-End (E2E)

Cypress

Real browser tests against a running app.

  • β€’ Full user journeys

Commands

$ npm run test β€” Single run

$ npm run test:watch β€” Watch mode

$ npm run test:coverage:public β€” Generate coverage and copy to Testing page

$ npm run test:e2e β€” Cypress E2E