Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
Added support for Growl on test end.
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiSG committed Jul 6, 2012
1 parent 2205235 commit 6ef11ed
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/controller/Runner.js
Expand Up @@ -135,7 +135,23 @@ var Runner = new Class({
if (this.currentFeature < this.features.length)
this.evaluateFeature(this.features[this.currentFeature]);
else
this.driver.quit();
this.finish();
},

/** Informs the user of the end result and cleans up everything after tests runs.
*
*@param {Boolean} success Whether all features succeeded or not.
*@private
*/
finish: function finish(success) {
if (growl) {
if (this.failed)
growl('Test failed :(', { priority: 4 });
else
growl('Test succeeded! :)', { priority: 3 });
}

this.driver.quit();
}
});

Expand Down

0 comments on commit 6ef11ed

Please sign in to comment.