@@ -158,24 +158,12 @@ module.exports = function (grunt) {
158
158
}
159
159
}
160
160
}
161
- } ,
162
- mocha : {
163
- yaml_suite : {
164
- options : {
165
- // log: true,
166
- run : true ,
167
- urls : [ 'http://localhost:8888' ] ,
168
- timeout : 10e3 ,
169
- '--web-security' : false
170
- }
171
- }
172
161
}
173
162
} ) ;
174
163
175
164
// load plugins
176
165
grunt . loadNpmTasks ( 'grunt-run' ) ;
177
166
grunt . loadNpmTasks ( 'grunt-open' ) ;
178
- grunt . loadNpmTasks ( 'grunt-mocha' ) ;
179
167
grunt . loadNpmTasks ( 'grunt-browserify' ) ;
180
168
grunt . loadNpmTasks ( 'grunt-mocha-test' ) ;
181
169
grunt . loadNpmTasks ( 'grunt-contrib-clean' ) ;
@@ -190,9 +178,7 @@ module.exports = function (grunt) {
190
178
'jshint' ,
191
179
'mochaTest:unit' ,
192
180
'build' ,
193
- 'mochaTest:yaml_suite' ,
194
- // 'start:integration_server',
195
- // 'mocha:yaml_suite' -- this will fail because of the way that PhantomJS handle's DELETE requests with body's
181
+ 'mochaTest:yaml_suite'
196
182
] ) ;
197
183
198
184
grunt . registerTask ( 'build' , [
@@ -227,6 +213,11 @@ module.exports = function (grunt) {
227
213
228
214
var taskData = this . data ;
229
215
216
+ /**
217
+ * You must always run the build task first, to ensure that the lastest API and yaml tests are available.
218
+ * This is run in the default and browser_tests:{{browser}} tests.
219
+ */
220
+ grunt . task . requires ( 'build' ) ;
230
221
grunt . task . requires ( 'run:integration_server' ) ;
231
222
232
223
grunt . config . set ( 'open.yaml_suite_' + this . target , {
0 commit comments