Socket
Socket
Sign inDemoInstall

protractor-console

Package Overview
Dependencies
147
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    protractor-console

Print console logging statements that occur during Protractor test runs.


Version published
Weekly downloads
2.7K
decreased by-6.94%
Maintainers
1
Install size
871 kB
Created
Weekly downloads
 

Changelog

Source

3.0.0

Breaking

Remove Babel transpilation. Node 6.4.0 or greater is now required.

Fixes

Handle browser.manage.logs() failing. GeckoDriver currently doesn't support it and blows up with a stack trace.

Readme

Source

protractor-console build status

Display log statements from the browser that occur while Protractor tests are running. Similar to the "Console Plugin" that comes with Protractor, but with some significant differences:

  • Associates logs with individual tests, printing them after each test run. "Console Plugin" only prints logs after all tests have run, making it more difficult to understand when they occured. For this to be truly beneficial, it should be used in conjunction with a more sophisticated test reporter like https://github.com/bcaudan/jasmine-spec-reporter.

image

  • Allows filtering all log levels.

Installation

npm install --save-dev protractor-console

Usage

This module is implemented as a Protractor plugin. Add it in the Protractor config like so:

exports.config = {
  plugins: [{
    package: 'protractor-console',
    logLevels: ['severe']
  }],

Configuration

  • logLevels: Inclusive Array filter for which log levels to show. Can be any of 'debug', 'info', 'warning' and 'severe'. Defaults to ['severe', 'warning'].

Keywords

FAQs

Last updated on 14 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc