I'm a believer in TDD and have a fairly strong set of tests to verify my calculations of the different relevant tennis stats, but I didn't have a sense of what code I was testing.
// Add coverage to all js source files in the chart_dashboard directory $("script[src^='/assets/chart_dashboard/']").attr("data-cover", "data-cover");
Presto! Code coverage using Blanket.js, QUnit, and qunit-rails.
Written by Alex Brinkman who lives and works in Denver, but plays in the mountains.