Skip to content

deepen168/protractor-console

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'].

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%