 
   grunt.registerTask 'test:unit', ['karma:unit']
 
-  grunt.registerTask 'test:e2e', ['express:test', 'protractor:e2e']
-
-  grunt.registerTask 'test', ['express:test', 'test:unit', 'test:e2e']
+  grunt.registerTask 'test:e2e', ['exec:selenium', 'express:test', 'protractor:e2e']
+
+  grunt.registerTask 'test', ['test:unit', 'test:e2e']
 
   grunt.registerTask 'release', ['build', 'requirejs', 'cssmin']

      unit:
        configFile: 'test/conf/karma-conf.coffee'

    protractor:
      options:
        debug: not not grunt.option('debug')
        keepAlive: not not grunt.option('debug')
        mochaOpts:
          debug: true
          timeout: 4000
      e2e:
        configFile: 'test/conf/protractor-conf.coffee'
      
    markdown:
      compile:
        expand: true

      compile:
        src: ['app/stylesheets/app.styl']
        dest: '_public/stylesheets/app.css'

    express:
      options:
        script: 'server.js'
