dylang / grunt-notify

Automatic Notifications when Grunt tasks fail.
https://npmjs.org/package/grunt-notify
MIT License
921 stars 73 forks source link

Mochacli error message just say "Error" #123

Open CupOfTea696 opened 8 years ago

CupOfTea696 commented 8 years ago

When my mochacli task fails, the message of the notification just reads "Error". It'd be nice if it could say how many tests failed or something.

Gruntfile experpt:

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    sass: {
      options: {
        gruntLogHeader: false,
        sourceMap: false,
        includePaths: [
          'scss'
        ]
      },
      test: {
        options: {
          outputStyle: 'expanded'
        },
        files: [
          {
            expand: true,
            cwd: 'tests',
            src: 'scss/fixtures/*.scss',
            dest: 'fixtures/$1.css',
            rename: rename
          }
        ]
      }
    },
    mochacli: {
      all: ['tests/*.test.js']
    },
    clean: {
      fixtures: ['tests/fixtures']
    },
    notify_hooks: {
      options: {
        enabled: true,
        title: '\\--csstyle 2'
      }
    },
    notify: {
      options: {
        title: '\\--csstyle 2'
      },
      test: {
        options: {
          message: 'Tests Complete'
        }
      }
    }
  });