karma-socket-reporter

    1.0.1 • Public • Published

    karma-socket-reporter

    Simple karma reporter that sends suit results over socket connection

    Installation

    You can simply install karma-socket-reporter as a devDependency by:

    npm install karma-socket-reporter --save-dev

    Configuration

    // karma.conf.js
    module.exports = function(config) {
      config.set({
        reporters: ['socket']
      });
    };

    You can pass a list of reporters as a CLI argument too:

    karma start --reporters socket

    Options

    You can specify options in the karma conf file:

    • host (default: '127.0.0.1')
    • port (default: '4444')
    • ok Message to send (default: 'ok')
    • ko message to send (default: 'ko')
    • started Message to send (default: 'start')
    • skip message to send (default: 'skip')

    Reporters sends a stringified object: { type: Message Type (ex: 'ko'), msg: { name: Test Name, msg: Jasmine Result } }

    Install

    npm i karma-socket-reporter

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    6.36 kB

    Total Files

    7

    Last publish

    Collaborators

    • imoverlord