The slides from master class I did on XP Days 2012
TEST DRIVENJAVASCRIPTShow & Talk
View Slide
>5 years of programming C#for fun and profit
>5 years of practicing TDD
“No line of production codewithout unit test “rule that worked perfect for meduring .NET programming
But it FAILED miserably that Istarted JavaScript programming
> Reason 1JavaScript code seems to be smalland easy
> Reason 2Leaving comfort zone is alwayshard
> Reason 3DOM appears to be not testable atfirst glance
Frameworks && Tools
qUnit, Jasmine, Mocha
Testing business logic
Testing UI/DOM code
Mocking/Spying on objects
Testing AJAX-dependent code
Continuous Testing with LiveReload
Final recommendations:1. Don't be afraid to start testing.2. Baby steps practice works.3. Use MV* frameworks.
Thanks,@alexbeletsky