Skip to content

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

Notifications You must be signed in to change notification settings

el-davo/protractor-notify-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published