     console.log "Watching directory: ".yellow +  "./#{@testDir}/".green
     chokidar.watch("./#{@testDir}/", ignoreInitial: yes).on 'all', (event, path) =>
       console.log event, path
-      if /\.coffee$/.test path then @scan()
+      if /\.coffee$/.test path
+        @scan()
+        @emit 'update'
 
   # Copy files from srcDir to destDir
   copy: (srcDir, destDir) ->

      if fileName.match /\.coffee$/
        dataPath = "#{base}/#{fileName}"
        key = fileName.replace /\.[^/.]+$/, ''
        console.log "Scanning test file #{dataPath} with key #{key}".red
        coffeeCode = fs.readFileSync(dataPath, encoding:'utf8')
        try
          scriptCode = coffee.compile coffeeCode


  # Update the files 
  scan: (baseDir = process.cwd()) ->
    base = baseDir + "/" + @testDir 
    if not fs.existsSync base
      fs.mkdirSync base
