unit testing js = sqlsat 324

Download Unit testing JS = SQLSat 324

Post on 15-Jan-2015




2 download

Embed Size (px)


Unit testing JavaScript - August 2, 2014 - SQL Sat 324


  • 1. JavaScript Testing Technically not a number Justin Obney, Front-End Dev

2. Gone are the days of old 3. Any application that can be written in JavaScript, will be written in JavaScript -- Atwoods Law JS is everywhere 4. That no one thinks they need to actually learn how it works. Looks like C or Java How hard could it be? JavaScript is so approachable 5. The old way Frameworks The lies Where to start Tooling Who knows? The Agenda 6. Whenever you are tempted to type something into a print statement or a debugger expression, write it as a test instead. Martin Fowler When do I write a test? 7. Testing Frameworks 8. A unit test is code that executes part of your production code with an expectation on the result. Unit vs. Integration Mocking & Stubbing Vocabulary 9. But testing is hard 10. But the DOM 11. Tooling TESTEM 12. I see you are on a Mac But what about Windows? 13. But does it scale? 14. In closing 15. Thank You justinobney@gmail.com twitter.com/justinobney github.com/justinobney apply@envoccareers.com