         files: ["test/**/*", "lib/**/*"]
         tasks: ["barriercli"]
 
-  grunt.registerTask "default", ["watch"]
+  grunt.registerTask "default", ["barriercli", "watch"]

  grunt.loadNpmTasks("grunt-contrib-watch")

  grunt.registerMultiTask "barriercli", "Run Barrier test suite", ->
    Runner = require("./lib/runner")

    files = []


      pair.src.forEach (f) ->
        files.push(Path.resolve(f))

    spawnOptions =
      opts:
        env: process.env
        stdio: 'inherit'

      cmd: Path.resolve(Path.join(__dirname, "bin", "barrier"))
      args: grunt.file.expand(files)

    grunt.util.spawn spawnOptions, (err, output) -> done()

  grunt.initConfig
    pkg: grunt.file.readJSON("package.json")
