Testing Angular apps
summary
Uses the Angular CLI and Karma, Jasmine and Protractor to show concrete test patterns: a runnable Angular Excel demo that evaluates formulas, cell references and functions, plus examples of unit, integration, shallow and e2e tests. Shows how to mock services, test the component class without Angular, use fakeAsync and marble testing, and weighs speed versus brittleness. Demo test suite completes with 26 tests pass, arguing for pragmatic, value-driven test choices over dogma.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 0:57Story
- 3:00Moral
- 3:11Testing Angular
- 4:29What is testing
- 5:50Angular app overview
- 7:36Angular Excel example
- 9:33Testing only one component
- 10:55Testing all components together
- 13:10Testing Excel component
- 13:56Mock service
- 15:07Split component
- 15:38Create component
- 17:00Cell component
- 19:20Types of tests
- 21:14Why write tests
- 24:09Best practices
related talks
59mTechniques and practices for testing Angular 2
56mTechniques and practices for testing Angular
19mTesting Best Practices for Angular Applications
52mAngular Testing: Do I Really Have to Do It?!
56mAngular Unit Testing from the Trenches
13mTesting Angular Components Fundamentals
42mProtractor Framework – Making Stable e2e Tests for Angular Applications
58mTestable Architecture in Angular
