node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

protractor-notify-plugin

protractor-notify-plugin

Notifies users when protractor tests have failed or passed using node-notifier

Installation

npm install --save-dev protractor-notify-plugin

The following code should be placed in the protractor configuration file. More information here - Protractor plugins

Minimal Configuration

    plugins: [{
        package: 'protractor-notify-plugin',
        notifier: 'growl'
    }],

Optional configuration

plugins: [{
    package: 'protractor-notify-plugin',
    notifier: 'growl',                  // notificationcenter | notifysend | toaster | growl | balloon - default 
    subtitle: 'Test',
    options: {
        withFallback: true
    },
    success: {
        title: 'Success',
        message: 'All {passed} test(s) have passed on {browser}',
        icon: __dirname + '/some/super/image'
    },
    fail: {
        title: 'Fail',
        message: '{failed} Test(s) have failed on {browser}',
        icon: __dirname + '/some/super/image'
    },
    noise: true,    // Default - true 
    wait: false     // Default - false, 
    notifyOnErrorOnly: true // Default - false 
}],

The notifications are handled by the node-notifier library. Please see the readme there for more info