           'browser/noflo-facebook.js': ['component.json']
 
     # BDD tests on Node.js
-    cafemocha:
+    mochaTest:
       nodejs:
         src: ['spec/*.coffee']
         options:
           reporter: 'spec'
+          require: 'coffee-script/register'
+          grep: process.env.TESTS
 
     # BDD tests on browser
     mocha_phantomjs:

    @task.run 'coffee'
    @task.run 'noflo_manifest'
    if target is 'all' or target is 'nodejs'
      @task.run 'cafemocha'
    if target is 'all' or target is 'browser'
      @task.run 'noflo_browser'
      @task.run 'mocha_phantomjs'

  @loadNpmTasks 'grunt-contrib-coffee'

  # Grunt plugins used for testing
  @loadNpmTasks 'grunt-mocha-test'
  @loadNpmTasks 'grunt-mocha-phantomjs'
  @loadNpmTasks 'grunt-coffeelint'

