Enable coverage tracking of spec files.
Showing
3 changed files
with
9 additions
and
3 deletions
... | @@ -41,6 +41,9 @@ module.exports = function (grunt) { | ... | @@ -41,6 +41,9 @@ module.exports = function (grunt) { |
41 | if (url.indexOf('src/scripts/') === 0) { | 41 | if (url.indexOf('src/scripts/') === 0) { |
42 | url = './.grunt/grunt-contrib-jasmine/' + url; | 42 | url = './.grunt/grunt-contrib-jasmine/' + url; |
43 | } | 43 | } |
44 | if (url.indexOf('test/specs/') === 0) { | ||
45 | url = './.grunt/grunt-contrib-jasmine/' + url; | ||
46 | } | ||
44 | //console.log('url=' + url); | 47 | //console.log('url=' + url); |
45 | return oldLoad.apply(this, [context, moduleName, url]); | 48 | return oldLoad.apply(this, [context, moduleName, url]); |
46 | }; | 49 | }; |
... | @@ -218,7 +221,10 @@ module.exports = function (grunt) { | ... | @@ -218,7 +221,10 @@ module.exports = function (grunt) { |
218 | 221 | ||
219 | jasmine: { | 222 | jasmine: { |
220 | all: { | 223 | all: { |
221 | src: '<%= yeoman.src %>/scripts/{,**/}*.js', | 224 | src: [ |
225 | '<%= yeoman.src %>/scripts/{,**/}*.js', | ||
226 | 'test/specs/**/*.spec.js', | ||
227 | ], | ||
222 | options: { | 228 | options: { |
223 | specs: 'test/specs/**/*.spec.js', | 229 | specs: 'test/specs/**/*.spec.js', |
224 | template: require('grunt-template-jasmine-istanbul'), | 230 | template: require('grunt-template-jasmine-istanbul'), | ... | ... |
... | @@ -11,7 +11,7 @@ define(function(require) { | ... | @@ -11,7 +11,7 @@ define(function(require) { |
11 | expect(PostalAddress).toBeTruthy(); | 11 | expect(PostalAddress).toBeTruthy(); |
12 | }); | 12 | }); |
13 | }); | 13 | }); |
14 | if (true) describe('PostalAddress', function() { | 14 | describe('PostalAddress', function() { |
15 | beforeEach(function() { | 15 | beforeEach(function() { |
16 | _.extend(Backbone.Model.prototype, Backbone.Validation.mixin); | 16 | _.extend(Backbone.Model.prototype, Backbone.Validation.mixin); |
17 | }); | 17 | }); | ... | ... |
... | @@ -11,7 +11,7 @@ define(function(require) { | ... | @@ -11,7 +11,7 @@ define(function(require) { |
11 | expect(TelecomNumber).toBeTruthy(); | 11 | expect(TelecomNumber).toBeTruthy(); |
12 | }); | 12 | }); |
13 | }); | 13 | }); |
14 | if (true) describe('TelecomNumber', function() { | 14 | describe('TelecomNumber', function() { |
15 | beforeEach(function() { | 15 | beforeEach(function() { |
16 | _.extend(Backbone.Model.prototype, Backbone.Validation.mixin); | 16 | _.extend(Backbone.Model.prototype, Backbone.Validation.mixin); |
17 | }); | 17 | }); | ... | ... |
-
Please register or sign in to post a comment