The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
Automated Software Testing
1. AUTOMATED TESTING
The 'what', 'when', 'why' and 'how'
“If you don’t like unit testing your product, most likely your
customers won’t like to test it either.” - Anonymous
2. WHY NOT?
Slower feature development
It's too hard
I don't really need tests, my code is fine
QA will find my bugs
I'll do it later
3. WHY?
Re-evaluate your code (DDT)
Plan out your code (TDD)
Slow down
Important w/ JavaScript
14. EXAMPLE JSHINT WARNINGS
simple bad references
for in loops w/out hasOwnProperty
no brackets around loop/conditional body
=== vs ==
hoisting issues
complexity
loops inside functions
+ 63 more
15. LINKS AND NOTES
modern.IE / IEVMs
defensive checks in JS
JSHint
Spock