Files
Vendaweb-portal/.context/docs/testing-strategy.md
Luis Eduardo Estevao 4652fea8fc documentação do sistema
2026-05-05 16:12:52 -03:00

762 B

type, name, description, category, generated, status, scaffoldVersion
type name description category generated status scaffoldVersion
doc testing-strategy Test frameworks, patterns, coverage requirements, and quality gates testing 2026-04-29 active 2.0.0

Testing Strategy

Test Types

  • Unit: Jasmine and Karma, files named *.spec.ts.
  • E2E: Protractor (e2e/ folder), files named *.e2e-spec.ts.

Running Tests

  • All tests: npm run test or ng test
  • E2E tests: npm run e2e or ng e2e
  • Watch mode: npm run test -- --watch

Quality Gates

  • Components should have accompanying .spec.ts files ensuring fundamental rendering and interactions.
  • NgRx reducers and effects must be covered by unit tests.
  • TypeScript strict typing helps catch compile-time issues before tests even run.