New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

codeceptjs-browserlogs-plugin

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs-browserlogs-plugin

Plugin to export last browser logs for failed tests.

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
decreased by-2.48%
Maintainers
0
Weekly downloads
 
Created
Source

Browser Logs Recorder for CodeceptJS

CodeceptJs plugin that will save browser logs for each failed test. Use this plugin if your web app generates useful logs recorded by the browser.

The following helpers are supported:

  • Playwright
  • Protractor
  • Puppeteer
  • TestCafe
  • WebDriver

Setup

Install the plugin using:

npm i codeceptjs-browserlogs-plugin --save

Add the helper to your codecept.conf.js file:

plugins: {
  BrowserLogsOnFail: {
    enabled: true,
    uniqueNames: true,
    require: 'codeceptjs-browserlogs-plugin'
  },
}

Set the enabled property explicitly to false to disable the plugin. To generate unique names for each log file (useful in automated testing) use the uniqueNames property.

And that is basically it. No other configuration is required.

Keywords

FAQs

Package last updated on 03 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc