Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
TEST DRIVEN JAVASCRIPT Show & Talk
Slide 2
Slide 2 text
No content
Slide 3
Slide 3 text
>5 years of programming C# for fun and profit
Slide 4
Slide 4 text
>5 years of practicing TDD
Slide 5
Slide 5 text
“No line of production code without unit test “ rule that worked perfect for me during .NET programming
Slide 6
Slide 6 text
But it FAILED miserably that I started JavaScript programming
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
> Reason 1 JavaScript code seems to be small and easy
Slide 9
Slide 9 text
> Reason 2 Leaving comfort zone is always hard
Slide 10
Slide 10 text
> Reason 3 DOM appears to be not testable at first glance
Slide 11
Slide 11 text
No content
Slide 12
Slide 12 text
Frameworks && Tools
Slide 13
Slide 13 text
qUnit, Jasmine, Mocha
Slide 14
Slide 14 text
Testing business logic
Slide 15
Slide 15 text
Testing UI/DOM code
Slide 16
Slide 16 text
Mocking/Spying on objects
Slide 17
Slide 17 text
Testing AJAX-dependent code
Slide 18
Slide 18 text
Continuous Testing with LiveReload
Slide 19
Slide 19 text
Final recommendations: 1. Don't be afraid to start testing. 2. Baby steps practice works. 3. Use MV* frameworks.
Slide 20
Slide 20 text
Thanks, @alexbeletsky