 
 gulp.task "bower", ->
   gulp.src dist
-    .pipe gulp.dest bower+    .pipe gulp.dest bower
+
+gulp.task "specs", ->
+  gulp.src source.specs
+    .pipe concat "micro.spec.coffee"
+    .pipe coffee()
+    .pipe gulp.dest meta.build
+
+gulp.task "test", ["specs"], (done) ->
+  karma.start
+    configFile: __dirname + '/karma.conf.js'
+    reporters: ['progress']
+    colors: true
+    singleRun: true
+  , done

source =
  micro: "./" + meta.source + "/" + meta.name + ".coffee"
  specs: "./" + meta.specs + "/" + meta.name + ".specs.js"

dist = [
  "./" + meta.dist + "/" + meta.name + ".js"

browserify   = require "browserify"
gulp         = require "gulp"
uglify       = require 'gulp-uglify'
coffee       = require 'gulp-coffee'
concat       = require 'gulp-concat'
karma        = require("karma").server
sourceStream = require "vinyl-source-stream"
buffer       = require "vinyl-buffer"

