         # send reporter('fail') to fail out
 )
 
-gulp.task('scripts:test:run', ->
+gulp.task('scripts:test:run', [
+    'styles:build'
+    'static:build'
+    'scripts:test:build'
+], ->
     gulp.src(dist + 'test.html')
         .pipe(plugins.mochaPhantomjs({reporter: 'spec'}))
 )

    run(
        'clean'
        [
            'static:build'
            'styles:build'
            'scripts:build'
        ]
        [
            'static:watch'
            'styles:watch'
            'scripts:watch'

        'clean'
        [
            'static:build'
            'styles:compress'
            'scripts:compress'
        ]
