Skip to content

Plugin for gemini and hermione to log some information to a console after tests finished

License

Notifications You must be signed in to change notification settings

gemini-testing/console-notifier

Repository files navigation

console-notifier Build Status

Plugin for gemini and hermione to log some information to a console after tests finished.

Install

$ npm install console-notifier

Usage

gemini

Add the plugin to your configuration file:

module.exports = {
    system: {
        plugins: {
            'console-notifier/gemini': {
                logs: [
                    'first-log',
                    {text: 'second-log'}, // revealed variant of the previous example
                    {on: 'success', text: 'third-log'}, // show log only if tests passed
                    {on: 'fail', text: 'fourth-log'}, // show log only if tests failed
                    {text: 'fifth-log', color: 'bold.red'} // show colored log; feature uses methods from module `chalk`
                ]
            }
        }
    }
};

hermione

Add the plugin to your configuration file:

module.exports = {
    plugins: {
        'console-notifier/hermione': {
            logs: [
                'first-log',
                {text: 'second-log'},
                {on: 'success', text: 'third-log'},
                {on: 'fail', text: 'fourth-log'},
                {text: 'fifth-log', color: 'bold.red'}
            ]
        }
    }
};

About

Plugin for gemini and hermione to log some information to a console after tests finished

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published