protractor-notify-plugin

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i protractor-notify-plugin

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • eahedav