Skip to content

Commit 5cd6f4a

Browse files
caitpFoxandxss
authored andcommitted
chore(Gruntfile): add grunt-ddescribe-iit task to CI checks
This should prevent `ddescribe` and `iit` blocks in tests from being checked into the tree, as they were in angular-ui#2311.
1 parent aa8c654 commit 5cd6f4a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Gruntfile.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = function(grunt) {
1111
grunt.loadNpmTasks('grunt-karma');
1212
grunt.loadNpmTasks('grunt-conventional-changelog');
1313
grunt.loadNpmTasks('grunt-ngdocs');
14+
grunt.loadNpmTasks('grunt-ddescribe-iit');
1415

1516
// Project configuration.
1617
grunt.util.linefeed = '\n';
@@ -190,12 +191,17 @@ module.exports = function(grunt) {
190191
src: ['src/**/*.js', 'src/**/*.ngdoc'],
191192
title: 'API Documentation'
192193
}
194+
},
195+
'ddescribe-iit': {
196+
files: [
197+
'src/**/*.spec.js'
198+
]
193199
}
194200
});
195201

196202
//register before and after test tasks so we've don't have to change cli
197203
//options on the goole's CI server
198-
grunt.registerTask('before-test', ['enforce', 'jshint', 'html2js']);
204+
grunt.registerTask('before-test', ['enforce', 'ddescribe-iit', 'jshint', 'html2js']);
199205
grunt.registerTask('after-test', ['build', 'copy']);
200206

201207
//Rename our watch task to 'delta', then make actual 'watch'

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"grunt-karma": "~0.4.4",
1818
"node-markdown": "0.1.1",
1919
"semver": "~2.2.0",
20-
"shelljs": "~0.2.0"
20+
"shelljs": "~0.2.0",
21+
"grunt-ddescribe-iit": "0.0.4"
2122
},
2223
"license": "MIT"
2324
}

0 commit comments

Comments
 (0)