/tdd-demo

Primary LanguageJavaScript

tdd demo

This is focused on front end testing, in a JavaScript central world. Many principles likely apply to modern server and API development, but some elements will be emphasised or diminished in accordance with the significance for web apps.

Useful resources

Traditional Testing pyramid

img

Strongly revolves around MVC and similar approaches, and a seperation where:

  • logic lives in the server, written as code
  • UI is written as markup and rendered on the client

Testing Pyramid

img

Rumours and hearsay

  • writing tests is hard
  • "I rewrote a whole component tree and I didn't have to change any tests!"