@@ -353,7 +353,7 @@ module.exports = function( grunt ) {
353353 keepSpecialComments : 0
354354 } ,
355355 minify : {
356- files : files . getMinifiedCSSFiles ( dist ) ,
356+ files : files . getMinifiedCSSFiles ( dist )
357357 }
358358 } ,
359359
@@ -515,7 +515,7 @@ module.exports = function( grunt ) {
515515 content = content . replace ( re , "" ) ;
516516 }
517517 return content ;
518- } ,
518+ }
519519 } ,
520520 files : {
521521 // WARNING: This will be modified by the config:copy:noversion task
@@ -636,11 +636,23 @@ module.exports = function( grunt ) {
636636
637637 qunit : {
638638 options : {
639- timeout : 30000
639+ timeout : 30000 ,
640+ "--web-security" : "no" ,
641+ coverage : {
642+ baseUrl : "." ,
643+ src : [
644+ "js/**/*.js" ,
645+ "!js/jquery.js" ,
646+ "!js/**/jquery.ui*.js" ,
647+ "!js/jquery.hashchange.js"
648+ ] ,
649+ instrumentedFiles : "temp/" ,
650+ htmlReport : "build/report/coverage" ,
651+ lcovReport : "build/report/lcov" ,
652+ linesThresholdPct : 0
653+ }
640654 } ,
641655
642- files : { } ,
643-
644656 http : {
645657 options : {
646658 urls : ( function ( ) {
@@ -716,6 +728,14 @@ module.exports = function( grunt ) {
716728 }
717729 } ,
718730
731+ coveralls : {
732+ all : {
733+
734+ // LCOV coverage file relevant to every target
735+ src : "build/report/lcov/lcov.info"
736+ }
737+ } ,
738+
719739 clean : {
720740 dist : [ dist ] ,
721741 git : [ path . join ( dist , "git" ) ] ,
@@ -733,7 +753,8 @@ module.exports = function( grunt ) {
733753 grunt . loadNpmTasks ( "grunt-contrib-concat" ) ;
734754 grunt . loadNpmTasks ( "grunt-contrib-connect" ) ;
735755 grunt . loadNpmTasks ( "grunt-contrib-cssmin" ) ;
736- grunt . loadNpmTasks ( "grunt-contrib-qunit" ) ;
756+ grunt . loadNpmTasks ( "grunt-coveralls" ) ;
757+ grunt . loadNpmTasks ( "grunt-qunit-istanbul" ) ;
737758 grunt . loadNpmTasks ( "grunt-contrib-requirejs" ) ;
738759 grunt . loadNpmTasks ( "grunt-contrib-uglify" ) ;
739760 grunt . loadNpmTasks ( "grunt-git-authors" ) ;
0 commit comments