jgable / grunt-qunit-serverless

A serverless version of the grunt-qunit task.
4 stars 2 forks source link

Send results (snapshot of page and logs) #3

Open jgable opened 11 years ago

jgable commented 11 years ago

In certain continuous integration situations I can see a need to send the results of the tests off by email, or even hooking up a irc bot to notify a channel.

We should start by setting up another option called resultProcessor that exposes three methods:

var resultProcessor = {
    onSuccess: function(logs, screenShotUrl, done) { ... },
    onFailure: function(logs, screenShotUrl, done) { ... },
    onError: function(logs, screenShotUrl, done) { ... }
};

As default implementations we could implement an EmailProcessor, IRCProcessor and POSTProcessor.