1f6f9249 by Adam Heath

Enable coverage tracking of spec files.

1 parent cf9600ec
......@@ -41,6 +41,9 @@ module.exports = function (grunt) {
if (url.indexOf('src/scripts/') === 0) {
url = './.grunt/grunt-contrib-jasmine/' + url;
}
if (url.indexOf('test/specs/') === 0) {
url = './.grunt/grunt-contrib-jasmine/' + url;
}
//console.log('url=' + url);
return oldLoad.apply(this, [context, moduleName, url]);
};
......@@ -218,7 +221,10 @@ module.exports = function (grunt) {
jasmine: {
all: {
src: '<%= yeoman.src %>/scripts/{,**/}*.js',
src: [
'<%= yeoman.src %>/scripts/{,**/}*.js',
'test/specs/**/*.spec.js',
],
options: {
specs: 'test/specs/**/*.spec.js',
template: require('grunt-template-jasmine-istanbul'),
......
......@@ -11,7 +11,7 @@ define(function(require) {
expect(PostalAddress).toBeTruthy();
});
});
if (true) describe('PostalAddress', function() {
describe('PostalAddress', function() {
beforeEach(function() {
_.extend(Backbone.Model.prototype, Backbone.Validation.mixin);
});
......
......@@ -11,7 +11,7 @@ define(function(require) {
expect(TelecomNumber).toBeTruthy();
});
});
if (true) describe('TelecomNumber', function() {
describe('TelecomNumber', function() {
beforeEach(function() {
_.extend(Backbone.Model.prototype, Backbone.Validation.mixin);
});
......