All Projects → angular → protractor-console-plugin

angular / protractor-console-plugin

Licence: MIT license
Checks the browser log after each test for warnings and errors

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Console Plugin (Chrome only)

This plugin checks the browser log after each test for warnings and errors. It can be configured to fail a test if either is detected. There is also an optional exclude parameter which accepts both regex and strings. Any log matching the exclude parameter will not fail the test or be logged to the console. A false setting to logWarnings also overrides the failOnWarning setting.

exports.config = {
  plugins: [{
    package: 'protractor-console-plugin',
    failOnWarning: {Boolean}                (Default - false),
    failOnError: {Boolean}                  (Default - true),
    logWarnings: {Boolean}                  (Default - true),
    exclude: {Array of strings and regex}   (Default - [])
  }]
};

Note that this plugin's behavior is undefined on browsers other than Chrome. Firefox users have reported flaky results.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].