~/talk

Techniques and practices for testing Angular 2

Talkat NDC London 2017 · 2017-01-16..01-20· [angular, testing]
slides:none on file

Shows concrete recipes for Angular testing using Karma + Jasmine for unit tests, Protractor for end-to-end, and optional Wallaby in the IDE; demos use the Angular CLI and a small Chuck Norris app that successfully passes tests. Covers fakes vs Jasmine spies (verify calls and args), using TestBed to get a TestBed fixture/debugElement and query the DOM, and two async strategies: fakeAsync/tick (simulates a two‑second delay) and async/whenStable (returns a promise). All examples run live and the assertions pass.

AI-written summary · about

  1. 0:00Start
  2. 0:13Adam Stephens
  3. 1:07Testing with Angular 2
  4. 4:28Why Are People Writing Tests
  5. 9:45Angular Cli Is Not a Testing Tool
  6. 10:38Jasmine
  7. 15:56Faking Dependencies
  8. 17:08Jasmine Spies
  9. 21:06Fake Joke Service
  10. 22:45Jasmine Spy
  11. 24:56Benefits of Spying
  12. 25:22Testbed
  13. 25:42Types of Tests
  14. 25:58Shallow Test
  15. 29:25Code Demo
  16. 29:48Configure a Testing Module
  17. 32:37Dependency Injection
  18. 37:30Test Asynchronous Code
  19. 37:53Jasmine Done Callbacks
  20. 39:57Fake Async
  21. 46:27End-to-End Tests
  22. 52:30Run the Test
  23. 57:59Testing Docs
  24. 58:42Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.