   runCoverage(reporter: 'lcov')
     .pipe($.coveralls())
 
+# run tests but only show progress
 gulp.task 'test-quiet', ['build'], ->
-  runTest reporter: 'dot'
+  runTest gulp.src(testFiles), reporter: 'dot'
 
+# run and display all tests
 gulp.task 'test', ['build'], ->
-  runTest reporter: 'spec'
+  runTest gulp.src(testFiles), reporter: 'spec'
 
+# run tests from phantomjs with karma
 gulp.task 'karma', ['test-quiet'], (done) ->
   karma.start
     configFile: require('path').join __dirname, './karma.conf.js'
     singleRun: true
   , done
 
+# uses chrome and firefox
 gulp.task 'karma-gui', ['test-quiet'], (done) ->
   karma.start
     configFile: require('path').join __dirname, './karma.conf.js'

# to require modules for testing
gulp.task 'build-test', ['clean'], ->
  testHeader = """
# not done under karma webpack tests
if module.paths
  module.paths.unshift process.cwd() + "/lib"


    singleRun: true
  , done

# doesn't work... yet
gulp.task 'watch-coverage', ['coverage'], (done) ->
  $.livereload.listen port: 35729
  require('opn') './coverage.html', null, util.log
  gulp.watch('src/**/*.coffee', ['coverage'])
  gulp.watch('./coverage.html').on 'change', $.livereload
  return

# watch all coffee files and run tests for changes
gulp.task 'watch', (done) ->
  gulp.watch 'src/**/*.coffee', ['test']
  return

# default, test
gulp.task 'default', ['test']


