DAO Application Testing
Testing Strategy
Unit Tests
Unit tests are located in the src
directory alongside the source files they test, with the naming convention *.spec.ts
.
E2E Tests
End-to-end tests are located in the test
directory with the naming convention *.e2e-spec.ts
.
Coverage Exclusions
The following files are excluded from coverage calculations:
main.ts: The application bootstrap file is excluded from unit test coverage requirements because:
It primarily contains integration code that initializes the application
It has side effects (starting servers, etc.) that make it difficult to unit test
It is implicitly tested through E2E tests
Testing it would require extensive mocking of external dependencies
This decision was made to focus testing efforts on the business logic and components of the application rather than the bootstrap process.
Running Tests
To run tests for the DAO application:
Last updated