Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Discover best practices and common pitfalls in JavaScript unit testing in this 46-minute conference talk from GOTO Aarhus 2013. Learn how to write readable and maintainable unit tests, avoiding mistakes that can lead to frustration when modifying code later. Explore topics such as test reviews, mock objects, state-based testing, integration tests, and working with popular libraries like jQuery, Backbone, and Knockout. Gain insights on improving test readability, naming conventions, and setup methods. Benefit from the expertise of Roy Osherove, author of "The Art of Unit Testing," as he shares valuable tips for effective JavaScript unit testing.
Syllabus
Introduction
Horrible Mistakes
Test Reviews
Mock Objects
Differentiation
State Based
Integration Tests
OpenLayer
jQuery
jQuery bugs
Trust problem
Forced assertion counts
Readability
Comments
Naming
The Test of Doom
Backbone
Jasmine
Knockout
Setup Methods
Test Multiple Methods
Taught by
GOTO Conferences