module.exports = (grunt) ->
  grunt.registerTask 'test', ->
    # Pass cli flags to mochacov options because they aren't used automatically
    grunt.config.set 'mochacov.options',
      grep: grunt.option('grep'),
      invert: grunt.option('invert') || false
      reporter: grunt.option('reporter') || 'spec'
      timeout: grunt.option('timeout')

    grunt.task.run [
      'mochacov:dev'
    ]