1/**
2 * Hack to expose spec count from QUnit to Karma
3 */
4
5var testCount = 0;
6var qunitTest = QUnit.test;
7QUnit.test = window.test = function () {
8 testCount += 1;
9 qunitTest.apply(this, arguments);
10};
11QUnit.begin(function (args) {
12 args.totalTests = testCount;
13});