@@ -217,7 +217,7 @@ gulp.task('clean.tests', function () {
217217 return del ( [ outputFolderPath ] ) ;
218218} ) ;
219219
220- gulp . task ( 'build.tests' , [ 'build.components' , ' clean.tests'] , function ( ) {
220+ gulp . task ( 'build.tests' , [ 'clean.tests' ] , function ( ) {
221221 var config = buildConfig . components ,
222222 testConfig = buildConfig . tests ;
223223
@@ -232,21 +232,21 @@ gulp.task('watch.spec', function() {
232232 gulp . watch ( buildConfig . components . tsTestSrc , [ 'build.tests' ] ) ;
233233} ) ;
234234
235- gulp . task ( 'test.components' , [ 'build.tests' ] , function ( done ) {
235+ gulp . task ( 'test.components' , function ( done ) {
236236 new karmaServer ( {
237237 configFile : __dirname + '/karma.conf.js'
238238 } , done ) . start ( ) ;
239239} ) ;
240240
241- gulp . task ( 'test.components.debug' , [ 'build.tests' ] , function ( done ) {
241+ gulp . task ( 'test.components.debug' , function ( done ) {
242242 new karmaServer ( {
243243 configFile : __dirname + '/karma.conf.js' ,
244244 browsers : [ 'Chrome' ] ,
245245 singleRun : false
246246 } , done ) . start ( ) ;
247247} ) ;
248248
249- gulp . task ( 'test.tools' , [ 'build.tools' ] , function ( done ) {
249+ gulp . task ( 'test.tools' , function ( done ) {
250250 var config = buildConfig . tools . tests ;
251251
252252 return gulp . src ( config . srcFilesPattern )
@@ -265,13 +265,19 @@ gulp.task('test.tools', ['build.tools'], function(done) {
265265 } ) ) ;
266266} ) ;
267267
268- gulp . task ( 'test ' , function ( done ) {
268+ gulp . task ( 'run.tests ' , function ( done ) {
269269 runSequence (
270270 [ 'test.tools' , 'test.components' ] ,
271271 'lint' ,
272272 done ) ;
273273} ) ;
274274
275+ gulp . task ( 'test' , function ( done ) {
276+ runSequence (
277+ 'build' , 'build.tests' , 'run.tests' ,
278+ done ) ;
279+ } ) ;
280+
275281gulp . task ( 'watch.test' , function ( done ) {
276282 new karmaServer ( {
277283 configFile : __dirname + '/karma.conf.js'
0 commit comments