Techniques and practices for testing Angular
summary
Shows how to test an Angular app end-to-end and unit-level using Angular CLI, Karma, Jasmine, Protractor and Wallaby. Builds a tiny “Chuck Norris jokes” component and service, uses Jasmine spies and hand-rolled fakes to stub getJoke, exercises templates via TestBed configureTestingModule and fixture.debugElement queries, and demonstrates async patterns with fakeAsync + tick (simulates a 2s delayed response). Wallaby speeds feedback; one live Protractor demo times out during the session.
AI-written summary · about
chapters (8)
- 0:00Introduction to angular testing
- 2:06Testing tools and landscape
- 5:10Testing framework overview
- 10:21Basic component testing
- 16:09Faking dependencies
- 25:05Using the TestBed API
- 36:03Asynchronous testing
- 47:01End-to-end testing
related talks
59mTechniques and practices for testing Angular 2
32mTesting Angular apps
52mAngular Testing: Do I Really Have to Do It?!
56mAngular Unit Testing from the Trenches
19mTesting Best Practices for Angular Applications
25mAngular + Jest: Testing Titbits
13mTesting Angular Components Fundamentals
27mUnit Tests for Angular 2 Applications
