762 B
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 testorng test - E2E tests:
npm run e2eorng e2e - Watch mode:
npm run test -- --watch
Quality Gates
- Components should have accompanying
.spec.tsfiles 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.