 
 # Test tasks
 # =======================
-gulp.task 'buildSpecScripts' , [], buildAppScripts
-gulp.task 'test'          , [ 'runAppTests']
+gulp.task 'test'          , ['runAppTests']
 # gulp.task 'testAndWatch'  , ['test', 'watchSpecs']
 
 


# RunAppTests
# ======================
gulp.task 'runAppTests', ['buildSpecScripts'], () ->
  gulp.src(paths.spec.js.sourceFiles)
    .pipe( karmaPlugin
      configFile: 'karma.conf.js'
      action    : 'watch'
    )
    .on 'error', (err) ->
      console.log 'runAppTests: ' + err




        gutil.log( gutil.colors.red('[HtmlWatcher] ') + gutil.colors.magenta( _.last(e.path.split('/')) ) + ' was changed' )
  )

  gulp.watch(paths.source.indexFile).on('change', (e) ->
    copyIndexToDistFolder()
      .on 'end', ->
        gutil.log( gutil.colors.red('[IndexFileWatcher] ') + gutil.colors.magenta( _.last(e.path.split('/')) ) + ' was changed' )
