08/27/2014
Quick introduction
Agenda
Why unit test javascript code?
Why jasmine?
Our Jasmine implementation
Dashboard overview
Summary Section
Charts section
Why unit test javascript code?
The front end behavior is complex
The capybara tests are good but are not enough
Created and supported by pivotal labs
Rspec alike syntax
There is a lot of libraries to improve our tests
It doesn't depends on ruby
Spec reporter helps us to get the load time for the ajax calls
load time for bandwidth: 0.094 secs analytics_utils_spec.js:19
load time for plays: 0.702 secs analytics_utils_spec.js:30
load time for revenue: 0.737 secs analytics_utils_spec.js:41