3 ms·
> Angular unit tests Talking as experienced front-end developer, currently working in an angular project, I must indicate that there are no Angular unit tests
by javcasas 7y ago
> Angular unit tests
Talking as experienced front-end developer, currently working in an angular project, I must indicate that there are no Angular unit tests in existence. A unit test that requires a full browser to run is not a unit test, but a full e2e test. Exactly the same as the endpoint tests that require opening a server and binding to a port.
- BjoernKW 7y agoWith Jasmine tests running with "ng test" (i.e. with Karma test runner rather than Protractor) the system-under-test usually is a single component, directive or service. Therefore, conceptually these indeed are unit tests. You could argue that because a browser environment is required for running these units the tests are integration tests. Still, they're commonly referred to as unit tests (including the official Angular documentation).