panrafal / karma-logcapture-reporter

a Karma plugin to capture logs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log capturer for Karma

npm version

Captures browser logs (ie: console.log) during the execution of each test, appending them only to failed tests.

Note: Using dump instead of console.log will trigger also the default behaviour of writing the message to the terminal.

Installation

npm install karma-logcapture-reporter

Configuration

Important: logcapture must be the first configured reporter

This is the minimal configuration needed to enable the capturing.

{
  reporters: ['logcapture', 'progress'],
  client: {
    captureConsole: true
  }
}

About

a Karma plugin to capture logs

License:MIT License


Languages

Language:JavaScript 100.0%