Ofir Dagan
1. Client side TDD is possible
2. Client side TDD can be easy once u get the gist of it
3. You should practice TDD from now on
TDD - Test Driven Development
- Credited to Kent Beck as part of extreme programming (XP) methodology
- Since 1999
by Robert C Martin (uncle bob)
1. Don't write production code except to pass a failing test
Writing Tests !== TDD
2. Write only enough test code to demonstrate a failure
3. Write only enough production code to pass the test
SUT (System Under Test)
Tests
Our Immune System
Intruders
No Antibodies
Pathogen A
No Antibodies
Pathogen A antibody
Pathogen A
Pathogen B
Pathogen A antibody
Pathogen A+B antibodies
Pathogen A antibody
But most importantly:
Clean code - no fear in cleaning / maintaining the code
Bottom line - The test suite has holes
Why Angular and TDD are a match made in heaven:
Full game version (with server API calls and E2E tests)
Live coding demo: