Small hack: add libnotify support to vows in node.js testing

Just add a couple of lines to vows/lib/vows/console.js:

    header = {
        honored: '✓ ' + $('OK').bold.green,
        broken:  '✗ ' + $('Broken').bold.yellow,
        errored: '✗ ' + $('Errored').bold.red,
        pending: '- ' + $('Pending').bold.cyan
    }[status] + ' » ';
 
    //SUYCCOMHACK START
    var exec = require('child_process').exec;
    exec("notify-send '"+status+" ' 'Vows test result'", 'a');
    //SUYCCOMHACK END

Post a comment.